20 lines
343 B
TypeScript
20 lines
343 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
////class A {
|
|
//// f() {}
|
|
////}
|
|
////let B = class implements A {}
|
|
|
|
verify.codeFix({
|
|
description: "Implement interface 'A'",
|
|
newFileContent:
|
|
`class A {
|
|
f() {}
|
|
}
|
|
let B = class implements A {
|
|
f(): void {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
}`
|
|
});
|