You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Search Terms:circularly references itself, Record circular reference
Code
typeRecursiveTypeA=Record<number,RecursiveTypeA>// error: Type alias 'RecursiveTypeA' circularly references itself.typeRecursiveTypeB=RecursiveTypeB[]// works finetypeRecursiveTypeC={[index: number]: RecursiveTypeC}// works fine
Expected behavior:
Record type should work like the third example that defines an object with number keys to the recursive value (the key type is irrelevant).
Actual behavior:
Only the Record type fail with circular reference
TypeScript Version: 3.7.2 (and also nightly)
Search Terms:
circularly references itself
,Record circular reference
Code
Expected behavior:
Record type should work like the third example that defines an object with number keys to the recursive value (the key type is irrelevant).
Actual behavior:
Only the Record type fail with circular reference
Playground Link: link
Related Issues: couldn't find any specific related issues
The text was updated successfully, but these errors were encountered: