30 lines
446 B
TypeScript
30 lines
446 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
// @lib: es2017
|
|
|
|
////enum E { a,b,c }
|
|
////interface I {
|
|
//// x: E;
|
|
//// y: E.a
|
|
//// z: symbol;
|
|
//// w: object;
|
|
////}
|
|
////class C implements I {}
|
|
|
|
verify.codeFix({
|
|
description: "Implement interface 'I'",
|
|
newFileContent:
|
|
`enum E { a,b,c }
|
|
interface I {
|
|
x: E;
|
|
y: E.a
|
|
z: symbol;
|
|
w: object;
|
|
}
|
|
class C implements I {
|
|
x: E;
|
|
y: E.a;
|
|
z: symbol;
|
|
w: object;
|
|
}`,
|
|
});
|