19 lines
487 B
TypeScript
19 lines
487 B
TypeScript
|
/// <reference path='fourslash.ts' />
|
||
|
|
||
|
// @allowSyntheticDefaultImports: true
|
||
|
// @Filename: /a.ts
|
||
|
////const a = [|require("a")|];
|
||
|
////const b = [|require("b")|];
|
||
|
////const { c } = [|require("c")|];
|
||
|
////const { d } = [|require("d")|];
|
||
|
|
||
|
verify.codeFixAll({
|
||
|
fixId: "requireInTs",
|
||
|
fixAllDescription: ts.Diagnostics.Convert_all_require_to_import.message,
|
||
|
newFileContent:
|
||
|
`import a from "a";
|
||
|
import b from "b";
|
||
|
import { c } from "c";
|
||
|
import { d } from "d";`,
|
||
|
});
|