mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
365 B
TypeScript
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;
|
|
}
|