TypeScript/tests/cases/fourslash/codeFixClassImplementInterfaceOptionalProperty.ts
2018-01-17 15:29:41 -08:00

21 lines
392 B
TypeScript

/// <reference path='fourslash.ts' />
////interface IPerson {
//// name: string;
//// birthday?: string;
////}
////class Person implements IPerson {}
verify.codeFix({
description: "Implement interface 'IPerson'",
newFileContent:
`interface IPerson {
name: string;
birthday?: string;
}
class Person implements IPerson {
name: string;
birthday?: string;
}`,
});