2017-05-05 19:54:53 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
2017-12-07 21:14:18 +01:00
|
|
|
////type MyType = [string, number];
|
|
|
|
////interface I { x: MyType; test(a: MyType): void; }
|
|
|
|
////class C implements I {}
|
2017-05-05 19:54:53 +02:00
|
|
|
|
2017-12-07 21:14:18 +01:00
|
|
|
verify.codeFix({
|
|
|
|
description: "Implement interface 'I'",
|
|
|
|
newFileContent:
|
|
|
|
`type MyType = [string, number];
|
|
|
|
interface I { x: MyType; test(a: MyType): void; }
|
2018-01-12 02:43:27 +01:00
|
|
|
class C implements I {
|
2019-08-27 13:23:52 +02:00
|
|
|
x: MyType;
|
|
|
|
test(a: MyType): void {
|
2018-01-12 02:43:27 +01:00
|
|
|
throw new Error("Method not implemented.");
|
|
|
|
}
|
2017-12-07 21:14:18 +01:00
|
|
|
}`,
|
|
|
|
});
|