Closed
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
export type Foos<K extends string = never> = {
[k in K]: Foo;
};
export type Foo = Foos;
ESLint Config
{
"rules": {
"@typescript-eslint/consistent-indexed-object-style": "error"
}
}
tsconfig
Expected Result
It does not suggest changing Foos to be defined using Record due to the circular dependency. Same as #7863
Actual Result
It suggests changing Foos to be defined using Record, which causes an error due to the circular reference
Additional Info
No response