File: lambdaPropSelf.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 (59 lines) | stat: -rw-r--r-- 1,131 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
=== tests/cases/compiler/lambdaPropSelf.ts ===
declare var ko: any;
>ko : any

class Person {
>Person : Person

    children: string[];
>children : string[]

    constructor (public name: string, children: string[]) {
>name : string
>children : string[]

        this.children = ko.observableArray(children);
>this.children = ko.observableArray(children) : any
>this.children : string[]
>this : this
>children : string[]
>ko.observableArray(children) : any
>ko.observableArray : any
>ko : any
>observableArray : any
>children : string[]
    }

    addChild = () => this.children.push("New child");
>addChild : () => number
>() => this.children.push("New child") : () => number
>this.children.push("New child") : number
>this.children.push : (...items: string[]) => number
>this.children : string[]
>this : this
>children : string[]
>push : (...items: string[]) => number
>"New child" : "New child"
}


class T {
>T : T

     fo() {
>fo : () => void

        var x = this;
>x : this
>this : this
    }
}

module M {
>M : typeof M

    var x = this;
>x : any
>this : any
}