70cabdda41
* improve import code fixes for UMD modules - use default import under --allowSyntheticDefaultImports - import..require support - make make quick fix info match resulting import - make diagnostics * Address PR feedback: - extract test for synethetic default imports into getAllowSyntheticDefaultImports in core.ts - use getAllowSyntheticDefaultImports in checker.ts and importFixes.ts - move compilerOptions to top level destructuring * add tests * remove `import =` quick fix and supporting code. * update feature tests * remove errant whitespace
18 lines
No EOL
339 B
TypeScript
18 lines
No EOL
339 B
TypeScript
/// <reference path="fourslash.ts" />
|
|
// @Module: system
|
|
|
|
// @Filename: a/f1.ts
|
|
//// [|export var x = 0;
|
|
//// bar/*0*/();|]
|
|
|
|
// @Filename: a/foo.d.ts
|
|
//// declare function bar(): number;
|
|
//// export = bar;
|
|
//// export as namespace bar;
|
|
|
|
verify.importFixAtPosition([
|
|
`import bar from "./foo";
|
|
|
|
export var x = 0;
|
|
bar();`
|
|
]); |