Closed
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
Something isn't workingSomething isn't workingGood for newcomersGood for newcomersIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin