mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
2.7 KiB
2.7 KiB
deeplyNestedAssignabilityIssue.ts:22:17 - error TS2741: Property 'a' is missing in type '{}' but required in type 'A'.
22 thing: {}
~~~~~
deeplyNestedAssignabilityIssue.ts:2:5 - 'a' is declared here.
2 a: number;
~
deeplyNestedAssignabilityIssue.ts:9:17 - The expected type comes from property 'thing' which is declared here on type '{ thing: A; }'
9 thing: A;
~~~~~
deeplyNestedAssignabilityIssue.ts:25:17 - error TS2741: Property 'a' is missing in type '{}' but required in type 'A'.
25 another: {}
~~~~~~~
deeplyNestedAssignabilityIssue.ts:2:5 - 'a' is declared here.
2 a: number;
~
deeplyNestedAssignabilityIssue.ts:12:17 - The expected type comes from property 'another' which is declared here on type '{ another: A; }'
12 another: A;
~~~~~~~
==== deeplyNestedAssignabilityIssue.ts (2 errors) ====
interface A {
a: number;
}
interface Large {
something: {
another: {
more: {
thing: A;
}
yetstill: {
another: A;
}
}
}
}
const x: Large = {
something: {
another: {
more: {
thing: {}
~~~~~
!!! error TS2741: Property 'a' is missing in type '{}' but required in type 'A'.
!!! related TS2728 deeplyNestedAssignabilityIssue.ts:2:5: 'a' is declared here.
!!! related TS6500 deeplyNestedAssignabilityIssue.ts:9:17: The expected type comes from property 'thing' which is declared here on type '{ thing: A; }'
},
yetstill: {
another: {}
~~~~~~~
!!! error TS2741: Property 'a' is missing in type '{}' but required in type 'A'.
!!! related TS2728 deeplyNestedAssignabilityIssue.ts:2:5: 'a' is declared here.
!!! related TS6500 deeplyNestedAssignabilityIssue.ts:12:17: The expected type comes from property 'another' which is declared here on type '{ another: A; }'
}
}
}
}
Found 2 errors in the same file, starting at: deeplyNestedAssignabilityIssue.ts:22
22 thing: {}
~~~~~
deeplyNestedAssignabilityIssue.ts:2:5 - 'a' is declared here.
2 a: number;
~
deeplyNestedAssignabilityIssue.ts:9:17 - The expected type comes from property 'thing' which is declared here on type '{ thing: A; }'
9 thing: A;
~~~~~
deeplyNestedAssignabilityIssue.ts:25:17 - error TS2741: Property 'a' is missing in type '{}' but required in type 'A'.
25 another: {}
~~~~~~~
deeplyNestedAssignabilityIssue.ts:2:5 - 'a' is declared here.
2 a: number;
~
deeplyNestedAssignabilityIssue.ts:12:17 - The expected type comes from property 'another' which is declared here on type '{ another: A; }'
12 another: A;
~~~~~~~
==== deeplyNestedAssignabilityIssue.ts (2 errors) ====
interface A {
a: number;
}
interface Large {
something: {
another: {
more: {
thing: A;
}
yetstill: {
another: A;
}
}
}
}
const x: Large = {
something: {
another: {
more: {
thing: {}
~~~~~
!!! error TS2741: Property 'a' is missing in type '{}' but required in type 'A'.
!!! related TS2728 deeplyNestedAssignabilityIssue.ts:2:5: 'a' is declared here.
!!! related TS6500 deeplyNestedAssignabilityIssue.ts:9:17: The expected type comes from property 'thing' which is declared here on type '{ thing: A; }'
},
yetstill: {
another: {}
~~~~~~~
!!! error TS2741: Property 'a' is missing in type '{}' but required in type 'A'.
!!! related TS2728 deeplyNestedAssignabilityIssue.ts:2:5: 'a' is declared here.
!!! related TS6500 deeplyNestedAssignabilityIssue.ts:12:17: The expected type comes from property 'another' which is declared here on type '{ another: A; }'
}
}
}
}
Found 2 errors in the same file, starting at: deeplyNestedAssignabilityIssue.ts:22