mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
7 lines
458 B
Plaintext
7 lines
458 B
Plaintext
contextualTyping20.ts(1,58): error TS2353: Object literal may only specify known properties, and 'name' does not exist in type '{ id: number; }'.
|
|
|
|
|
|
==== contextualTyping20.ts (1 errors) ====
|
|
var foo:{id:number;}[] = [{id:1}]; foo = [{id:1}, {id:2, name:"foo"}];
|
|
~~~~
|
|
!!! error TS2353: Object literal may only specify known properties, and 'name' does not exist in type '{ id: number; }'. |