TypeScript/tests/cases/fourslash/codeFixClassImplementInterfaceObjectLiteral.ts
2018-03-23 15:54:01 -07:00

23 lines
451 B
TypeScript

/// <reference path='fourslash.ts' />
//// interface IPerson {
//// coordinate: {
//// x: number;
//// y: number;
//// }
//// }
//// class Person implements IPerson { }
verify.codeFix({
description: "Implement interface 'IPerson'",
newFileContent:
`interface IPerson {
coordinate: {
x: number;
y: number;
}
}
class Person implements IPerson {
coordinate: { x: number; y: number; };
}`,
});