TypeScript/tests/cases/fourslash/importNameCodeFixUMDGlobal1.ts
Andrew Branch 03c79d7422
Insert auto-imports in sorted order (#39394)
* Sort auto-imports

* Avoid re-checking sort all the time

* Add comment
2020-07-08 15:25:04 -07:00

22 lines
478 B
TypeScript

/// <reference path="fourslash.ts" />
// @AllowSyntheticDefaultImports: false
// @Module: esnext
// @Filename: a/f1.ts
//// [|import { bar } from "./foo";
////
//// export function test() { };
//// bar1/*0*/.bar();|]
// @Filename: a/foo.d.ts
//// export declare function bar(): number;
//// export as namespace bar1;
verify.importFixAtPosition([
`import * as bar1 from "./foo";
import { bar } from "./foo";
export function test() { };
bar1.bar();`
]);