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