2017-03-17 02:02:34 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
2017-12-07 21:14:18 +01:00
|
|
|
////interface I {
|
|
|
|
//// x: number[];
|
|
|
|
//// y: Array<number>;
|
|
|
|
//// z: [number, string, I];
|
|
|
|
////}
|
2017-03-17 02:02:34 +01:00
|
|
|
////
|
2017-12-07 21:14:18 +01:00
|
|
|
////class C implements I {[| |]}
|
2017-03-17 02:02:34 +01:00
|
|
|
|
2017-12-07 21:14:18 +01:00
|
|
|
verify.codeFix({
|
|
|
|
description: "Implement interface 'I'",
|
|
|
|
newFileContent:
|
|
|
|
`interface I {
|
|
|
|
x: number[];
|
|
|
|
y: Array<number>;
|
|
|
|
z: [number, string, I];
|
|
|
|
}
|
|
|
|
|
2018-01-12 02:43:27 +01:00
|
|
|
class C implements I {
|
|
|
|
x: number[];
|
|
|
|
y: number[];
|
|
|
|
z: [number, string, I];
|
2017-12-07 21:14:18 +01:00
|
|
|
}`,
|
|
|
|
});
|