File: genericClassPropertyInheritanceSpecialization.types

package info (click to toggle)
node-typescript 2.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 203,952 kB
  • ctags: 52,987
  • sloc: sh: 11; makefile: 5
file content (259 lines) | stat: -rw-r--r-- 6,614 bytes parent folder | download | duplicates (2)
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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
=== tests/cases/compiler/genericClassPropertyInheritanceSpecialization.ts ===
interface KnockoutObservableBase<T> {
>KnockoutObservableBase : KnockoutObservableBase<T>
>T : T

    peek(): T;
>peek : () => T
>T : T

    (): T;
>T : T

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

interface KnockoutObservable<T> extends KnockoutObservableBase<T> {
>KnockoutObservable : KnockoutObservable<T>
>T : T
>KnockoutObservableBase : KnockoutObservableBase<T>
>T : T

    equalityComparer(a: T, b: T): boolean;
>equalityComparer : (a: T, b: T) => boolean
>a : T
>T : T
>b : T
>T : T

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

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

interface KnockoutObservableArray<T> extends KnockoutObservable<T[]> {
>KnockoutObservableArray : KnockoutObservableArray<T>
>T : T
>KnockoutObservable : KnockoutObservable<T>
>T : T

    indexOf(searchElement: T, fromIndex?: number): number;
>indexOf : (searchElement: T, fromIndex?: number) => number
>searchElement : T
>T : T
>fromIndex : number

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

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

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

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

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

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

    reverse(): T[];
>reverse : () => T[]
>T : 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
>T : T
>b : T
>T : T

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

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

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

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

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

interface KnockoutObservableArrayStatic {
>KnockoutObservableArrayStatic : KnockoutObservableArrayStatic

    fn: KnockoutObservableArray<any>;
>fn : KnockoutObservableArray<any>
>KnockoutObservableArray : KnockoutObservableArray<T>

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

declare module ko {
>ko : typeof ko

    export var observableArray: KnockoutObservableArrayStatic;
>observableArray : KnockoutObservableArrayStatic
>KnockoutObservableArrayStatic : KnockoutObservableArrayStatic
}

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

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

        private _subscription;
>_subscription : any

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

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

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

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

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

        public _validate(value: TValue): number {return 0 }
>_validate : (value: TValue) => number
>value : TValue
>TValue : 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>
>TValue : 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
>TValue : TValue

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

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

}

interface Contract<TValue> {
>Contract : Contract<TValue>
>TValue : TValue

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


class ViewModel<TValue> implements Contract<TValue> {
>ViewModel : ViewModel<TValue>
>TValue : TValue
>Contract : Contract<TValue>
>TValue : 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>>
>KnockoutObservableArray : KnockoutObservableArray<T>
>PortalFx : any
>ViewModels : any
>Controls : any
>Validators : any
>Validator : PortalFx.ViewModels.Controls.Validators.Validator<TValue>
>TValue : TValue
>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
>Validator : PortalFx.ViewModels.Controls.Validators.Validator<TValue>
>TValue : TValue
}