Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 504 Bytes

no-explicit-generics.md

File metadata and controls

23 lines (15 loc) · 504 Bytes

Avoid unnecessary explicit type arguments (no-explicit-generics)

This rule prevents the use of explicit type arguments when the type arguments can be inferred.

Rule details

Examples of incorrect code for this rule:

import { BehaviorSubject } from "rxjs";
const subject = new BehaviorSubject<number>(42);

Examples of correct code for this rule:

import { BehaviorSubject } from "rxjs";
const subject = new BehaviorSubject(42);

Options

This rule has no options.