24 lines
356 B
TypeScript
24 lines
356 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
////interface I {
|
|
//// [x: number]: I;
|
|
//// [y: string]: I;
|
|
////}
|
|
////
|
|
////class C implements I {}
|
|
|
|
verify.codeFix({
|
|
description: "Implement interface 'I'",
|
|
newFileContent:
|
|
`interface I {
|
|
[x: number]: I;
|
|
[y: string]: I;
|
|
}
|
|
|
|
class C implements I {
|
|
[x: number]: I;
|
|
[y: string]: I;
|
|
}`,
|
|
});
|