TypeScript/tests/cases/compiler/inferredIndexerOnNamespaceImport.ts
Wesley Wigham b949245336 Add ValueModule as a valid object literal type, as they are immutable (#19090)
* Add ValueModule as a valid object literal type, as they are immutable

* Rename method based on usage
2017-10-11 15:13:33 -07:00

12 lines
187 B
TypeScript

// @filename: foo.ts
export const x = 3;
export const y = 5;
// @filename: bar.ts
import * as foo from "./foo";
function f(map: { [k: string]: number }) {
// ...
}
f(foo);