File: genericClassPropertyInheritanceSpecialization.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 (192 lines) | stat: -rw-r--r-- 5,140 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
=== tests/cases/compiler/genericClassPropertyInheritanceSpecialization.ts ===
interface KnockoutObservableBase<T> {
    peek(): T;
>peek : () => T

    (): T;
    (value: T): void;
>value : T
}

interface KnockoutObservable<T> extends KnockoutObservableBase<T> {
    equalityComparer(a: T, b: T): boolean;
>equalityComparer : (a: T, b: T) => boolean
>a : T
>b : T

    valueHasMutated(): void;
>valueHasMutated : () => void

    valueWillMutate(): void;
>valueWillMutate : () => void
}

interface KnockoutObservableArray<T> extends KnockoutObservable<T[]> {
    indexOf(searchElement: T, fromIndex?: number): number;
>indexOf : (searchElement: T, fromIndex?: number) => number
>searchElement : T
>fromIndex : number

    slice(start: number, end?: number): T[];
>slice : (start: number, end?: number) => T[]
>start : number
>end : number

    splice(start: number, deleteCount?: number, ...items: T[]): T[];
>splice : (start: number, deleteCount?: number, ...items: T[]) => T[]
>start : number
>deleteCount : number
>items : T[]

    pop(): T;
>pop : () => T

    push(...items: T[]): void;
>push : (...items: T[]) => void
>items : T[]

    shift(): T;
>shift : () => T

    unshift(...items: T[]): number;
>unshift : (...items: T[]) => number
>items : T[]

    reverse(): T[];
>reverse : () => T[]

    sort(compareFunction?: (a: T, b: T) => number): void;
>sort : (compareFunction?: (a: T, b: T) => number) => void
>compareFunction : (a: T, b: T) => number
>a : T
>b : T

    replace(oldItem: T, newItem: T): void;
>replace : (oldItem: T, newItem: T) => void
>oldItem : T
>newItem : T

    remove(item: T): T[];
>remove : (item: T) => T[]
>item : T

    removeAll(items?: T[]): T[];
>removeAll : (items?: T[]) => T[]
>items : T[]

    destroy(item: T): void;
>destroy : (item: T) => void
>item : T

    destroyAll(items?: T[]): void;
>destroyAll : (items?: T[]) => void
>items : T[]
}

interface KnockoutObservableArrayStatic {
    fn: KnockoutObservableArray<any>;
>fn : KnockoutObservableArray<any>

    <T>(value?: T[]): KnockoutObservableArray<T>;
>value : T[]
}

declare module ko {
>ko : typeof ko

    export var observableArray: KnockoutObservableArrayStatic;
>observableArray : KnockoutObservableArrayStatic
}

module Portal.Controls.Validators {
>Portal : typeof Portal
>Controls : typeof Controls
>Validators : typeof Validators

    export class Validator<TValue> {
>Validator : Validator<TValue>

        private _subscription;
>_subscription : any

        public message: KnockoutObservable<string>;
>message : KnockoutObservable<string>

        public validationState: KnockoutObservable<number>;
>validationState : KnockoutObservable<number>

        public validate: KnockoutObservable<TValue>;
>validate : KnockoutObservable<TValue>

        constructor(message?: string) { }
>message : string

        public destroy(): void { }
>destroy : () => void

        public _validate(value: TValue): number {return 0 }
>_validate : (value: TValue) => number
>value : TValue
>0 : 0
    }
}

module PortalFx.ViewModels.Controls.Validators {
>PortalFx : typeof PortalFx
>ViewModels : typeof ViewModels
>Controls : typeof Controls
>Validators : typeof Validators

    export class Validator<TValue> extends Portal.Controls.Validators.Validator<TValue> {
>Validator : Validator<TValue>
>Portal.Controls.Validators.Validator : Portal.Controls.Validators.Validator<TValue>
>Portal.Controls.Validators : typeof Portal.Controls.Validators
>Portal.Controls : typeof Portal.Controls
>Portal : typeof Portal
>Controls : typeof Portal.Controls
>Validators : typeof Portal.Controls.Validators
>Validator : typeof Portal.Controls.Validators.Validator

        constructor(message?: string) {
>message : string

            super(message);
>super(message) : void
>super : typeof Portal.Controls.Validators.Validator
>message : string
        }
    }

}

interface Contract<TValue> {

    validators: KnockoutObservableArray<PortalFx.ViewModels.Controls.Validators.Validator<TValue>>;
>validators : KnockoutObservableArray<PortalFx.ViewModels.Controls.Validators.Validator<TValue>>
>PortalFx : any
>ViewModels : any
>Controls : any
>Validators : any
}


class ViewModel<TValue> implements Contract<TValue> {
>ViewModel : ViewModel<TValue>

    public validators: KnockoutObservableArray<PortalFx.ViewModels.Controls.Validators.Validator<TValue>> = ko.observableArray<PortalFx.ViewModels.Controls.Validators.Validator<TValue>>();
>validators : KnockoutObservableArray<PortalFx.ViewModels.Controls.Validators.Validator<TValue>>
>PortalFx : any
>ViewModels : any
>Controls : any
>Validators : any
>ko.observableArray<PortalFx.ViewModels.Controls.Validators.Validator<TValue>>() : KnockoutObservableArray<PortalFx.ViewModels.Controls.Validators.Validator<TValue>>
>ko.observableArray : KnockoutObservableArrayStatic
>ko : typeof ko
>observableArray : KnockoutObservableArrayStatic
>PortalFx : any
>ViewModels : any
>Controls : any
>Validators : any
}