TypeScript/tests/cases/fourslash/importNameCodeFixNewImportFile4.ts
Andrew Branch e1bce187a8
Type-only auto imports (#36412)
* WIP

* Promote existing type-only imports to regular if needed

* Add completions test adding to type-only import

* Update tests, revert whole-import-clause replacement codefix strategy to preserve import specifier formatting

* Revert unnecessary changes

* Delete unused function

* }
2020-01-27 12:53:32 -08:00

16 lines
296 B
TypeScript

/// <reference path="fourslash.ts" />
//// [|let t: A/*0*/.B.I;|]
// @Filename: ./module.ts
//// export namespace A {
//// export namespace B {
//// export interface I { }
//// }
//// }
verify.importFixAtPosition([
`import { A } from "./module";
let t: A.B.I;`
]);