TypeScript/tests/cases/fourslash/codeFixClassImplementInterfaceInNamespace.ts
2018-01-17 15:29:41 -08:00

32 lines
535 B
TypeScript

/// <reference path='fourslash.ts' />
////namespace N1 {
//// export interface I1 {
//// f1():string;
//// }
////}
////interface I1 {
//// f1();
////}
////
////class C1 implements N1.I1 {}
verify.codeFix({
description: "Implement interface 'N1.I1'",
newFileContent:
`namespace N1 {
export interface I1 {
f1():string;
}
}
interface I1 {
f1();
}
class C1 implements N1.I1 {
f1(): string {
throw new Error("Method not implemented.");
}
}`,
});