9 lines
No EOL
343 B
Text
9 lines
No EOL
343 B
Text
tests/cases/compiler/objectTypeWithOptionalProperty1.ts(2,10): error TS1162: An object member cannot be declared optional.
|
|
|
|
|
|
==== tests/cases/compiler/objectTypeWithOptionalProperty1.ts (1 errors) ====
|
|
var b = {
|
|
x?: 1 // error
|
|
~
|
|
!!! error TS1162: An object member cannot be declared optional.
|
|
} |