TypeScript/tests/cases/fourslash/importNameCodeFixNewImportFile5.ts
Mine Starks 89994111bd Missing import code fix - include export assignment properties when looking for module exports (#17376)
* Include export assignment properties when looking for module exports

* Create new API function for tryGetMemberInModuleExportsAndProperties

* Cleanup based on review feedback
2017-07-26 16:17:01 -07:00

16 lines
271 B
TypeScript

/// <reference path="fourslash.ts" />
//// [|bar/*0*/();|]
// @Filename: foo.ts
//// interface MyStatic {
//// bar(): void;
//// }
//// declare var x: MyStatic;
//// export = x;
verify.importFixAtPosition([
`import { bar } from "./foo";
bar();`
]);