-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomerspackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin
Description
I'm using the latest version of all packages (1.6.0).
function x<T>(z: Extract<keyof T, string>): string {
return z + '__';
}
This warns that the addition is unsafe but it shouldn't. It works correctly if it's not keyof T
but keyof obj
where obj
is some object, i.e. generics are not involved.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomerspackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin