Inspectopedia Help

Redundant type arguments

Reports a type argument that is equal to the default one and can be removed.

Example:

type Foo<T=number> = T; let z: Foo<number>;
Last modified: 29 April 2024