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