--- description: 'Disallow type arguments that are equal to the default.' --- > 🛑 This file is source code, not the primary documentation location! 🛑 > > See **https://typescript-eslint.io/rules/no-unnecessary-type-arguments** for documentation. Type parameters in TypeScript may specify a default value. For example: ```ts function f(...) {...} ``` It is redundant to provide an explicit type parameter equal to that default: e.g. calling `f(...)`. This rule reports when an explicitly specified type argument is the default for that type parameter. ## Examples ### ❌ Incorrect ```ts function f() {} f(); ``` ```ts function g() {} g(); ``` ```ts class C {} new C(); class D extends C {} ``` ```ts interface I {} class Impl implements I {} ``` ### ✅ Correct ```ts function f() {} f(); f(); ``` ```ts function g() {} g(); g(); ``` ```ts class C {} new C(); new C(); class D extends C {} class D extends C {} ``` ```ts interface I {} class Impl implements I {} ``` ## When Not To Use It If you prefer explicitly specifying type parameters even when they are equal to the default, you can skip this rule.