mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
8 lines
454 B
Plaintext
8 lines
454 B
Plaintext
contextualTyping11.ts(1,42): error TS2741: Property 'id' is missing in type 'foo' but required in type '{ id: number; }'.
|
|
|
|
|
|
==== contextualTyping11.ts (1 errors) ====
|
|
class foo { public bar:{id:number;}[] = [<foo>({})]; }
|
|
~~~~~~~~~
|
|
!!! error TS2741: Property 'id' is missing in type 'foo' but required in type '{ id: number; }'.
|
|
!!! related TS2728 contextualTyping11.ts:1:25: 'id' is declared here. |