b2b54cbf5c
* 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
19 lines
No EOL
403 B
TypeScript
19 lines
No EOL
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;`
|
|
]); |