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