18 lines
426 B
TypeScript
18 lines
426 B
TypeScript
|
/// <reference path='fourslash.ts' />
|
||
|
// @esModuleInterop: true
|
||
|
// @Filename: foo.d.ts
|
||
|
////declare class foo(): void;
|
||
|
////declare namespace foo {}
|
||
|
////export = foo;
|
||
|
|
||
|
// @Filename: index.ts
|
||
|
////[|import * as foo from "./foo";|]
|
||
|
////new foo();
|
||
|
|
||
|
goTo.file(1);
|
||
|
verify.codeFix({
|
||
|
description: `Replace import with 'import foo from "./foo";'.`,
|
||
|
newRangeContent: `import foo from "./foo";`,
|
||
|
index: 0,
|
||
|
});
|