10 lines
166 B
JavaScript
10 lines
166 B
JavaScript
|
//// [objectTypeWithOptionalProperty1.ts]
|
||
|
var b = {
|
||
|
x?: 1 // error
|
||
|
}
|
||
|
|
||
|
//// [objectTypeWithOptionalProperty1.js]
|
||
|
var b = {
|
||
|
x: 1 // error
|
||
|
};
|