TypeScript/tests/baselines/reference/namedImportNonExistentName.js
Ron Buckton 711b4e778b
Indirect calls for imported functions (#44624)
* Indirect calls for imported functions

* Fix unit tests
2021-06-21 19:51:13 -07:00

32 lines
607 B
TypeScript

//// [tests/cases/compiler/namedImportNonExistentName.ts] ////
//// [foo.d.ts]
export = Foo;
export as namespace Foo;
declare namespace Foo {
function foo();
}
//// [foo2.ts]
let x: { a: string; c: string; } | { b: number; c: number; };
export = x
//// [bar.ts]
import { Bar, toString, foo } from './foo';
foo();
import { a, b, c, d, toString as foo2String } from './foo2';
c;
//// [foo2.js]
"use strict";
var x;
module.exports = x;
//// [bar.js]
"use strict";
exports.__esModule = true;
var foo_1 = require("./foo");
(0, foo_1.foo)();
var foo2_1 = require("./foo2");
foo2_1.c;