-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed as not planned
Labels
bugSomething isn't workingSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-pluginworking as intendedIssues that are closed as they are working as intendedIssues that are closed as they are working as intended
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have searched for related issues and found none that matched my issue.
- I have read the FAQ and my problem is not listed.
Playground Link
Repro Code
declare global {
interface Promise<T> {
foo(): string;
}
}
export { };ESLint Config
module.exports = {
"rules": {
"@typescript-eslint/no-unused-vars": "error"
}
}tsconfig
Expected Result
No warnings
Actual Result
Warning 'T' is defined but never used. 3:21 - 3:22. But when I remove the <T> get an error from typescript: 2428: All declarations of 'Promise' must have identical type parameters. 3:13 - 3:20. Typescript also won't allow you to rename the type parameters to _T.
Additional Info
See also microsoft/TypeScript#62881 and TanStack/table#5222
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-pluginworking as intendedIssues that are closed as they are working as intendedIssues that are closed as they are working as intended
{ "compilerOptions": { "strictNullChecks": true, } }