File: implementsClause.types

package info (click to toggle)
node-typescript 5.0.4%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 459,116 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (28 lines) | stat: -rw-r--r-- 718 bytes parent folder | download | duplicates (2)
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