File: umdGlobalConflict.types

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (29 lines) | stat: -rw-r--r-- 646 bytes parent folder | download | duplicates (5)
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
29
=== tests/cases/compiler/v1/index.d.ts ===
export as namespace Alpha;
>Alpha : typeof import("tests/cases/compiler/v1/index")

export var x: string;
>x : string

=== tests/cases/compiler/v2/index.d.ts ===
export as namespace Alpha;
>Alpha : typeof import("tests/cases/compiler/v2/index")

export var y: number;
>y : number

=== tests/cases/compiler/consumer.ts ===
import * as v1 from './v1';
>v1 : typeof v1

import * as v2 from './v2';
>v2 : typeof v2

=== tests/cases/compiler/global.ts ===
// Should be OK, first in wins
const p: string = Alpha.x;
>p : string
>Alpha.x : string
>Alpha : typeof Alpha
>x : string