File: libMembers.types

package info (click to toggle)
node-typescript 5.0.4%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 459,140 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (69 lines) | stat: -rw-r--r-- 1,223 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
=== tests/cases/compiler/libMembers.ts ===
var s="hello";
>s : string
>"hello" : "hello"

s.substring(0);
>s.substring(0) : string
>s.substring : (start: number, end?: number) => string
>s : string
>substring : (start: number, end?: number) => string
>0 : 0

s.substring(3,4);
>s.substring(3,4) : string
>s.substring : (start: number, end?: number) => string
>s : string
>substring : (start: number, end?: number) => string
>3 : 3
>4 : 4

s.subby(12);   // error unresolved
>s.subby(12) : any
>s.subby : any
>s : string
>subby : any
>12 : 12

String.fromCharCode(12);
>String.fromCharCode(12) : string
>String.fromCharCode : (...codes: number[]) => string
>String : StringConstructor
>fromCharCode : (...codes: number[]) => string
>12 : 12

module M {
>M : typeof M

    export class C {
>C : C
    }
    var a=new C[];
>a : any
>new C[] : any
>C[] : any
>C : typeof C
> : any

    a.length;
>a.length : any
>a : any
>length : any

    a.push(new C());
>a.push(new C()) : any
>a.push : any
>a : any
>push : any
>new C() : C
>C : typeof C

    (new C()).prototype;
>(new C()).prototype : any
>(new C()) : C
>new C() : C
>C : typeof C
>prototype : any
}