23 lines
454 B
TypeScript
23 lines
454 B
TypeScript
|
/// <reference path='fourslash.ts' />
|
||
|
|
||
|
// @Filename: /dir/a.ts
|
||
|
////declare const decorator: any;
|
||
|
////class A {
|
||
|
//// @decorator method() {};
|
||
|
////};
|
||
|
|
||
|
// @Filename: /dir/tsconfig.json
|
||
|
////{
|
||
|
////}
|
||
|
|
||
|
goTo.file("/dir/a.ts");
|
||
|
verify.codeFix({
|
||
|
description: "Enable the 'experimentalDecorators' option in your configuration file",
|
||
|
newFileContent: {
|
||
|
"/dir/tsconfig.json":
|
||
|
`{
|
||
|
"compilerOptions": { "experimentalDecorators": true },
|
||
|
}`,
|
||
|
},
|
||
|
});
|