9 lines
No EOL
459 B
Text
9 lines
No EOL
459 B
Text
tests/cases/compiler/contextualTyping5.ts(1,13): error TS2322: Type '{}' is not assignable to type '{ id: number; }'.
|
|
Property 'id' is missing in type '{}'.
|
|
|
|
|
|
==== tests/cases/compiler/contextualTyping5.ts (1 errors) ====
|
|
class foo { public bar:{id:number;} = { }; }
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS2322: Type '{}' is not assignable to type '{ id: number; }'.
|
|
!!! error TS2322: Property 'id' is missing in type '{}'. |