[@typescript-eslint/no-unnecessary-type-arguments] type argument automatically removed #4569
Closed
3 tasks done
Labels
duplicate
This issue or pull request already exists
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
I have a type that has a type argument which has to extend a certain type.
When I pass this type argument, it figures:
However the type argument while extending the expected type it is a type with extra things on it.
possibly related to #1224 ?
Repro
1 - clone https://github.com/upfrontjs/framework
2 - update ts-lint packages to the latest
3 - run
npm run lint
The following should not have it's second type argument removed
https://github.com/upfrontjs/framework/blob/main/tests/Calliope/Factory/FactoryBuilder.test.ts#L17
Expected Result
Type argument not to be removed
Actual Result
Type argument is removed
Additional Info
After updating to 5.12.0 from 5.11.0 my type arguments are incorrectly being removed
The PR that caused this change: #4543
The release: https://github.com/typescript-eslint/typescript-eslint/releases/tag/v5.12.0
Versions
@typescript-eslint/eslint-plugin
5.12.0
@typescript-eslint/parser
5.12.0
TypeScript
4.5.5
ESLint
8.9.0
node
17.5.0
The text was updated successfully, but these errors were encountered: