Closed
Description
Repro
{
"rules": {
"@typescript-eslint/no-explicit-any": ["error", { "ignoreGenericConstraints": true }]
}
}
type IsString<T extends any> = T extends string ? true : false;
type CodomainOf<T extends Record<string, any>> = T extends Record<string, infer R> ? R : never;
Expected Result
No errors for explicit any
if they are used in generic constraints.
Actual Result
There is no such option to disable errors/warnings for explicit any
usage in generic constraints.