cee4289f58
* Add code fix to convert 'require' in a '.ts' file to an 'import'
* Only add suggestion for modules
* Revert "Only add suggestion for modules"
This reverts commit b1a728fdac
.
12 lines
256 B
TypeScript
12 lines
256 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
// @allowSyntheticDefaultImports: true
|
|
|
|
// @Filename: /a.ts
|
|
////const a = [|require("a")|];
|
|
|
|
verify.codeFix({
|
|
description: "Convert 'require' to 'import'",
|
|
newFileContent: `import a from "a";`,
|
|
});
|