1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
//// [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";
Object.defineProperty(exports, "__esModule", { value: true });
var foo_1 = require("./foo");
(0, foo_1.foo)();
var foo2_1 = require("./foo2");
foo2_1.c;
|