26 lines
429 B
TypeScript
26 lines
429 B
TypeScript
|
/// <reference path="fourslash.ts" />
|
||
|
|
||
|
// @Filename: /a.d.ts
|
||
|
////declare function a(): void;
|
||
|
////declare namespace a {
|
||
|
//// export interface b {}
|
||
|
////}
|
||
|
////export = a;
|
||
|
|
||
|
// @Filename: /b.ts
|
||
|
////a;
|
||
|
////let x: b;
|
||
|
|
||
|
goTo.file("/b.ts");
|
||
|
verify.codeFixAll({
|
||
|
fixId: "fixMissingImport",
|
||
|
fixAllDescription: "Add all missing imports",
|
||
|
newFileContent:
|
||
|
`import { b } from "./a";
|
||
|
|
||
|
import a = require("./a");
|
||
|
|
||
|
a;
|
||
|
let x: b;`,
|
||
|
});
|