Files
tsgo/testdata/baselines/reference/submodule/conformance/optionalProperties02.js

21 lines
365 B
TypeScript

//// [tests/cases/conformance/types/typeRelationships/comparable/optionalProperties02.ts] ////
//// [optionalProperties02.ts]
interface Foo {
a?: string;
b: string;
}
<Foo>{ a: undefined };
//// [optionalProperties02.js]
"use strict";
({ a: undefined });
//// [optionalProperties02.d.ts]
interface Foo {
a?: string;
b: string;
}