1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
tests/cases/conformance/types/mapped/recursiveMappedTypes.ts(4,6): error TS2456: Type alias 'Recurse' circularly references itself.
tests/cases/conformance/types/mapped/recursiveMappedTypes.ts(8,6): error TS2456: Type alias 'Recurse1' circularly references itself.
tests/cases/conformance/types/mapped/recursiveMappedTypes.ts(12,6): error TS2456: Type alias 'Recurse2' circularly references itself.
==== tests/cases/conformance/types/mapped/recursiveMappedTypes.ts (3 errors) ====
// Recursive mapped types simply appear empty
type Recurse = {
~~~~~~~
!!! error TS2456: Type alias 'Recurse' circularly references itself.
[K in keyof Recurse]: Recurse[K]
}
type Recurse1 = {
~~~~~~~~
!!! error TS2456: Type alias 'Recurse1' circularly references itself.
[K in keyof Recurse2]: Recurse2[K]
}
type Recurse2 = {
~~~~~~~~
!!! error TS2456: Type alias 'Recurse2' circularly references itself.
[K in keyof Recurse1]: Recurse1[K]
}
|