mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
test synthesized object literal formatting
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
/// <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; };
|
||||
}`,
|
||||
});
|
||||
Reference in New Issue
Block a user