TypeScript/tests/baselines/reference/exportNamespace2.types

26 lines
594 B
Plaintext

=== tests/cases/conformance/externalModules/typeOnly/a.ts ===
export class A {}
>A : A
=== tests/cases/conformance/externalModules/typeOnly/b.ts ===
export * as a from './a';
>a : typeof import("tests/cases/conformance/externalModules/typeOnly/a")
=== tests/cases/conformance/externalModules/typeOnly/c.ts ===
import type { a } from './b';
>a : any
export { a };
>a : typeof a
=== tests/cases/conformance/externalModules/typeOnly/d.ts ===
import { a } from './c';
>a : typeof a
new a.A(); // Error
>new a.A() : a.A
>a.A : typeof a.A
>a : typeof a
>A : typeof a.A