TypeScript/tests/baselines/reference/exportNamespace3.types

23 lines
607 B
Plaintext

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