mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
29 lines
416 B
TypeScript
29 lines
416 B
TypeScript
//// [tests/cases/conformance/importDefer/importDeferDeclaration.ts] ////
|
|
|
|
//// [a.ts]
|
|
export interface Foo {
|
|
x: number;
|
|
}
|
|
|
|
//// [b.ts]
|
|
import defer * as ns from "./a.js";
|
|
|
|
export type X = { foo: ns.Foo };
|
|
|
|
|
|
//// [a.js]
|
|
export {};
|
|
//// [b.js]
|
|
export {};
|
|
|
|
|
|
//// [a.d.ts]
|
|
export interface Foo {
|
|
x: number;
|
|
}
|
|
//// [b.d.ts]
|
|
import * as ns from "./a.js";
|
|
export type X = {
|
|
foo: ns.Foo;
|
|
};
|