File: newNamesInGlobalAugmentations1.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 (52 lines) | stat: -rw-r--r-- 818 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
=== tests/cases/compiler/f1.d.ts ===
export {};

declare module M.M1 {
>M : typeof M
>M1 : typeof M1

    export let x: number;
>x : number
}
declare global {
>global : typeof global

    interface SymbolConstructor {
        observable: symbol;
>observable : symbol
    }
    class Cls {x}
>Cls : Cls
>x : any

    let [a, b]: number[];
>a : number
>b : number

    export import X = M.M1.x;
>X : number
>M : typeof M
>M1 : typeof M.M1
>x : number
}

=== tests/cases/compiler/main.ts ===
Symbol.observable;
>Symbol.observable : symbol
>Symbol : SymbolConstructor
>observable : symbol

new Cls().x
>new Cls().x : any
>new Cls() : Cls
>Cls : typeof Cls
>x : any

let c = a + b + X;
>c : number
>a + b + X : number
>a + b : number
>a : number
>b : number
>X : number