TypeScript/tests/cases/fourslash/importNameCodeFixUMDGlobal0.ts
Aluan Haddad b2b54cbf5c Import fix add import require support (#19802)
* import fix: suggest import..require where supported if synthetic defaults are unavailable

* Add tests for import..require fix when targeting CommonJS, AMD, and UMD modules

* fix failing tests
2017-11-07 09:45:30 -08:00

19 lines
403 B
TypeScript

/// <reference path="fourslash.ts" />
// @AllowSyntheticDefaultImports: false
// @Module: es2015
// @Filename: a/f1.ts
//// [|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";
export function test() { };
bar1.bar;`
]);