2018-07-27 01:16:57 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
2020-02-28 23:34:20 +01:00
|
|
|
// @module: esnext
|
2018-07-27 01:16:57 +02:00
|
|
|
// @allowJs: true
|
|
|
|
// @checkJs: true
|
|
|
|
|
|
|
|
// @Filename: /a.js
|
|
|
|
////export class C {}
|
|
|
|
/////** @typedef {number} T */
|
|
|
|
|
|
|
|
// @Filename: /b.js
|
|
|
|
////C;
|
|
|
|
/////** @type {T} */
|
|
|
|
////const x = 0;
|
|
|
|
|
|
|
|
goTo.file("/b.js");
|
|
|
|
verify.codeFixAll({
|
|
|
|
fixId: "fixMissingImport",
|
|
|
|
fixAllDescription: "Add all missing imports",
|
|
|
|
newFileContent:
|
|
|
|
`import { C } from "./a";
|
|
|
|
|
|
|
|
C;
|
|
|
|
/** @type {import("./a").T} */
|
|
|
|
const x = 0;`,
|
|
|
|
});
|