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
|
=== tests/cases/conformance/externalModules/typeOnly/types.ts ===
export interface Component {}
=== tests/cases/conformance/externalModules/typeOnly/ns.ts ===
import type * as types from './types';
>types : typeof types
export { types };
>types : typeof types
=== tests/cases/conformance/externalModules/typeOnly/index.ts ===
import type * as types from './types';
>types : typeof types
import * as nestedNamespace from './ns';
>nestedNamespace : typeof nestedNamespace
class C implements types.Component {}
>C : C
>types : typeof types
class D implements nestedNamespace.types.Component {}
>D : D
>nestedNamespace.types : any
>nestedNamespace : typeof nestedNamespace
>types : any
|