2018-05-17 10:35:11 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
//// declare module "foo" {
|
|
|
|
//// const a = "foo"
|
|
|
|
//// export = a
|
|
|
|
//// }
|
|
|
|
//// const x: import("foo") = import("foo");
|
|
|
|
|
|
|
|
verify.codeFix({
|
2018-05-19 08:44:38 +02:00
|
|
|
description: "Add missing 'typeof'",
|
2018-05-17 10:35:11 +02:00
|
|
|
newFileContent: `declare module "foo" {
|
|
|
|
const a = "foo"
|
|
|
|
export = a
|
|
|
|
}
|
|
|
|
const x: typeof import("foo") = import("foo");`
|
|
|
|
});
|