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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
//// [tests/cases/conformance/types/import/importTypeAmdBundleRewrite.ts] ////
//// [c.ts]
export interface Foo {
x: 12;
}
//// [inner.ts]
const c: import("./b/c").Foo = {x: 12};
export {c};
//// [index.ts]
const d: typeof import("./a/inner")["c"] = {x: 12};
export {d};
//// [bundle.js]
define("a/b/c", ["require", "exports"], function (require, exports) {
"use strict";
exports.__esModule = true;
});
define("a/inner", ["require", "exports"], function (require, exports) {
"use strict";
exports.__esModule = true;
exports.c = void 0;
var c = { x: 12 };
exports.c = c;
});
define("index", ["require", "exports"], function (require, exports) {
"use strict";
exports.__esModule = true;
exports.d = void 0;
var d = { x: 12 };
exports.d = d;
});
//// [bundle.d.ts]
declare module "a/b/c" {
export interface Foo {
x: 12;
}
}
declare module "a/inner" {
const c: import("a/b/c").Foo;
export { c };
}
declare module "index" {
const d: typeof import("a/inner")["c"];
export { d };
}
|