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
|
=== tests/cases/compiler/genericClassPropertyInheritanceSpecialization.ts ===
interface KnockoutObservableBase<T> {
>KnockoutObservableBase : Symbol(KnockoutObservableBase, Decl(genericClassPropertyInheritanceSpecialization.ts, 0, 0))
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 0, 33))
peek(): T;
>peek : Symbol(KnockoutObservableBase.peek, Decl(genericClassPropertyInheritanceSpecialization.ts, 0, 37))
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 0, 33))
(): T;
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 0, 33))
(value: T): void;
>value : Symbol(value, Decl(genericClassPropertyInheritanceSpecialization.ts, 3, 5))
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 0, 33))
}
interface KnockoutObservable<T> extends KnockoutObservableBase<T> {
>KnockoutObservable : Symbol(KnockoutObservable, Decl(genericClassPropertyInheritanceSpecialization.ts, 4, 1))
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 6, 29))
>KnockoutObservableBase : Symbol(KnockoutObservableBase, Decl(genericClassPropertyInheritanceSpecialization.ts, 0, 0))
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 6, 29))
equalityComparer(a: T, b: T): boolean;
>equalityComparer : Symbol(KnockoutObservable.equalityComparer, Decl(genericClassPropertyInheritanceSpecialization.ts, 6, 67))
>a : Symbol(a, Decl(genericClassPropertyInheritanceSpecialization.ts, 7, 21))
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 6, 29))
>b : Symbol(b, Decl(genericClassPropertyInheritanceSpecialization.ts, 7, 26))
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 6, 29))
valueHasMutated(): void;
>valueHasMutated : Symbol(KnockoutObservable.valueHasMutated, Decl(genericClassPropertyInheritanceSpecialization.ts, 7, 42))
valueWillMutate(): void;
>valueWillMutate : Symbol(KnockoutObservable.valueWillMutate, Decl(genericClassPropertyInheritanceSpecialization.ts, 8, 28))
}
interface KnockoutObservableArray<T> extends KnockoutObservable<T[]> {
>KnockoutObservableArray : Symbol(KnockoutObservableArray, Decl(genericClassPropertyInheritanceSpecialization.ts, 10, 1))
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34))
>KnockoutObservable : Symbol(KnockoutObservable, Decl(genericClassPropertyInheritanceSpecialization.ts, 4, 1))
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34))
indexOf(searchElement: T, fromIndex?: number): number;
>indexOf : Symbol(KnockoutObservableArray.indexOf, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 70))
>searchElement : Symbol(searchElement, Decl(genericClassPropertyInheritanceSpecialization.ts, 13, 12))
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34))
>fromIndex : Symbol(fromIndex, Decl(genericClassPropertyInheritanceSpecialization.ts, 13, 29))
slice(start: number, end?: number): T[];
>slice : Symbol(KnockoutObservableArray.slice, Decl(genericClassPropertyInheritanceSpecialization.ts, 13, 58))
>start : Symbol(start, Decl(genericClassPropertyInheritanceSpecialization.ts, 14, 10))
>end : Symbol(end, Decl(genericClassPropertyInheritanceSpecialization.ts, 14, 24))
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34))
splice(start: number, deleteCount?: number, ...items: T[]): T[];
>splice : Symbol(KnockoutObservableArray.splice, Decl(genericClassPropertyInheritanceSpecialization.ts, 14, 44))
>start : Symbol(start, Decl(genericClassPropertyInheritanceSpecialization.ts, 15, 11))
>deleteCount : Symbol(deleteCount, Decl(genericClassPropertyInheritanceSpecialization.ts, 15, 25))
>items : Symbol(items, Decl(genericClassPropertyInheritanceSpecialization.ts, 15, 47))
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34))
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34))
pop(): T;
>pop : Symbol(KnockoutObservableArray.pop, Decl(genericClassPropertyInheritanceSpecialization.ts, 15, 68))
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34))
push(...items: T[]): void;
>push : Symbol(KnockoutObservableArray.push, Decl(genericClassPropertyInheritanceSpecialization.ts, 16, 13))
>items : Symbol(items, Decl(genericClassPropertyInheritanceSpecialization.ts, 17, 9))
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34))
shift(): T;
>shift : Symbol(KnockoutObservableArray.shift, Decl(genericClassPropertyInheritanceSpecialization.ts, 17, 30))
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34))
unshift(...items: T[]): number;
>unshift : Symbol(KnockoutObservableArray.unshift, Decl(genericClassPropertyInheritanceSpecialization.ts, 18, 15))
>items : Symbol(items, Decl(genericClassPropertyInheritanceSpecialization.ts, 19, 12))
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34))
reverse(): T[];
>reverse : Symbol(KnockoutObservableArray.reverse, Decl(genericClassPropertyInheritanceSpecialization.ts, 19, 35))
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34))
sort(compareFunction?: (a: T, b: T) => number): void;
>sort : Symbol(KnockoutObservableArray.sort, Decl(genericClassPropertyInheritanceSpecialization.ts, 20, 19))
>compareFunction : Symbol(compareFunction, Decl(genericClassPropertyInheritanceSpecialization.ts, 21, 9))
>a : Symbol(a, Decl(genericClassPropertyInheritanceSpecialization.ts, 21, 28))
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34))
>b : Symbol(b, Decl(genericClassPropertyInheritanceSpecialization.ts, 21, 33))
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34))
replace(oldItem: T, newItem: T): void;
>replace : Symbol(KnockoutObservableArray.replace, Decl(genericClassPropertyInheritanceSpecialization.ts, 21, 57))
>oldItem : Symbol(oldItem, Decl(genericClassPropertyInheritanceSpecialization.ts, 22, 12))
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34))
>newItem : Symbol(newItem, Decl(genericClassPropertyInheritanceSpecialization.ts, 22, 23))
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34))
remove(item: T): T[];
>remove : Symbol(KnockoutObservableArray.remove, Decl(genericClassPropertyInheritanceSpecialization.ts, 22, 42))
>item : Symbol(item, Decl(genericClassPropertyInheritanceSpecialization.ts, 23, 11))
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34))
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34))
removeAll(items?: T[]): T[];
>removeAll : Symbol(KnockoutObservableArray.removeAll, Decl(genericClassPropertyInheritanceSpecialization.ts, 23, 25))
>items : Symbol(items, Decl(genericClassPropertyInheritanceSpecialization.ts, 24, 14))
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34))
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34))
destroy(item: T): void;
>destroy : Symbol(KnockoutObservableArray.destroy, Decl(genericClassPropertyInheritanceSpecialization.ts, 24, 32))
>item : Symbol(item, Decl(genericClassPropertyInheritanceSpecialization.ts, 25, 12))
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34))
destroyAll(items?: T[]): void;
>destroyAll : Symbol(KnockoutObservableArray.destroyAll, Decl(genericClassPropertyInheritanceSpecialization.ts, 25, 27))
>items : Symbol(items, Decl(genericClassPropertyInheritanceSpecialization.ts, 26, 15))
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34))
}
interface KnockoutObservableArrayStatic {
>KnockoutObservableArrayStatic : Symbol(KnockoutObservableArrayStatic, Decl(genericClassPropertyInheritanceSpecialization.ts, 27, 1))
fn: KnockoutObservableArray<any>;
>fn : Symbol(KnockoutObservableArrayStatic.fn, Decl(genericClassPropertyInheritanceSpecialization.ts, 29, 41))
>KnockoutObservableArray : Symbol(KnockoutObservableArray, Decl(genericClassPropertyInheritanceSpecialization.ts, 10, 1))
<T>(value?: T[]): KnockoutObservableArray<T>;
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 32, 5))
>value : Symbol(value, Decl(genericClassPropertyInheritanceSpecialization.ts, 32, 8))
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 32, 5))
>KnockoutObservableArray : Symbol(KnockoutObservableArray, Decl(genericClassPropertyInheritanceSpecialization.ts, 10, 1))
>T : Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 32, 5))
}
declare module ko {
>ko : Symbol(ko, Decl(genericClassPropertyInheritanceSpecialization.ts, 33, 1))
export var observableArray: KnockoutObservableArrayStatic;
>observableArray : Symbol(observableArray, Decl(genericClassPropertyInheritanceSpecialization.ts, 36, 14))
>KnockoutObservableArrayStatic : Symbol(KnockoutObservableArrayStatic, Decl(genericClassPropertyInheritanceSpecialization.ts, 27, 1))
}
module Portal.Controls.Validators {
>Portal : Symbol(Portal, Decl(genericClassPropertyInheritanceSpecialization.ts, 37, 1))
>Controls : Symbol(Controls, Decl(genericClassPropertyInheritanceSpecialization.ts, 39, 14))
>Validators : Symbol(Validators, Decl(genericClassPropertyInheritanceSpecialization.ts, 39, 23))
export class Validator<TValue> {
>Validator : Symbol(Validator, Decl(genericClassPropertyInheritanceSpecialization.ts, 39, 35))
>TValue : Symbol(TValue, Decl(genericClassPropertyInheritanceSpecialization.ts, 41, 27))
private _subscription;
>_subscription : Symbol(Validator._subscription, Decl(genericClassPropertyInheritanceSpecialization.ts, 41, 36))
public message: KnockoutObservable<string>;
>message : Symbol(Validator.message, Decl(genericClassPropertyInheritanceSpecialization.ts, 42, 30))
>KnockoutObservable : Symbol(KnockoutObservable, Decl(genericClassPropertyInheritanceSpecialization.ts, 4, 1))
public validationState: KnockoutObservable<number>;
>validationState : Symbol(Validator.validationState, Decl(genericClassPropertyInheritanceSpecialization.ts, 43, 51))
>KnockoutObservable : Symbol(KnockoutObservable, Decl(genericClassPropertyInheritanceSpecialization.ts, 4, 1))
public validate: KnockoutObservable<TValue>;
>validate : Symbol(Validator.validate, Decl(genericClassPropertyInheritanceSpecialization.ts, 44, 59))
>KnockoutObservable : Symbol(KnockoutObservable, Decl(genericClassPropertyInheritanceSpecialization.ts, 4, 1))
>TValue : Symbol(TValue, Decl(genericClassPropertyInheritanceSpecialization.ts, 41, 27))
constructor(message?: string) { }
>message : Symbol(message, Decl(genericClassPropertyInheritanceSpecialization.ts, 46, 20))
public destroy(): void { }
>destroy : Symbol(Validator.destroy, Decl(genericClassPropertyInheritanceSpecialization.ts, 46, 41))
public _validate(value: TValue): number {return 0 }
>_validate : Symbol(Validator._validate, Decl(genericClassPropertyInheritanceSpecialization.ts, 47, 34))
>value : Symbol(value, Decl(genericClassPropertyInheritanceSpecialization.ts, 48, 25))
>TValue : Symbol(TValue, Decl(genericClassPropertyInheritanceSpecialization.ts, 41, 27))
}
}
module PortalFx.ViewModels.Controls.Validators {
>PortalFx : Symbol(PortalFx, Decl(genericClassPropertyInheritanceSpecialization.ts, 50, 1))
>ViewModels : Symbol(ViewModels, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 16))
>Controls : Symbol(Controls, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 27))
>Validators : Symbol(Validators, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 36))
export class Validator<TValue> extends Portal.Controls.Validators.Validator<TValue> {
>Validator : Symbol(Validator, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 48))
>TValue : Symbol(TValue, Decl(genericClassPropertyInheritanceSpecialization.ts, 54, 27))
>Portal.Controls.Validators.Validator : Symbol(Portal.Controls.Validators.Validator, Decl(genericClassPropertyInheritanceSpecialization.ts, 39, 35))
>Portal.Controls.Validators : Symbol(Portal.Controls.Validators, Decl(genericClassPropertyInheritanceSpecialization.ts, 39, 23))
>Portal.Controls : Symbol(Portal.Controls, Decl(genericClassPropertyInheritanceSpecialization.ts, 39, 14))
>Portal : Symbol(Portal, Decl(genericClassPropertyInheritanceSpecialization.ts, 37, 1))
>Controls : Symbol(Portal.Controls, Decl(genericClassPropertyInheritanceSpecialization.ts, 39, 14))
>Validators : Symbol(Portal.Controls.Validators, Decl(genericClassPropertyInheritanceSpecialization.ts, 39, 23))
>Validator : Symbol(Portal.Controls.Validators.Validator, Decl(genericClassPropertyInheritanceSpecialization.ts, 39, 35))
>TValue : Symbol(TValue, Decl(genericClassPropertyInheritanceSpecialization.ts, 54, 27))
constructor(message?: string) {
>message : Symbol(message, Decl(genericClassPropertyInheritanceSpecialization.ts, 56, 20))
super(message);
>super : Symbol(Portal.Controls.Validators.Validator, Decl(genericClassPropertyInheritanceSpecialization.ts, 39, 35))
>message : Symbol(message, Decl(genericClassPropertyInheritanceSpecialization.ts, 56, 20))
}
}
}
interface Contract<TValue> {
>Contract : Symbol(Contract, Decl(genericClassPropertyInheritanceSpecialization.ts, 61, 1))
>TValue : Symbol(TValue, Decl(genericClassPropertyInheritanceSpecialization.ts, 63, 19))
validators: KnockoutObservableArray<PortalFx.ViewModels.Controls.Validators.Validator<TValue>>;
>validators : Symbol(Contract.validators, Decl(genericClassPropertyInheritanceSpecialization.ts, 63, 28))
>KnockoutObservableArray : Symbol(KnockoutObservableArray, Decl(genericClassPropertyInheritanceSpecialization.ts, 10, 1))
>PortalFx : Symbol(PortalFx, Decl(genericClassPropertyInheritanceSpecialization.ts, 50, 1))
>ViewModels : Symbol(PortalFx.ViewModels, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 16))
>Controls : Symbol(PortalFx.ViewModels.Controls, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 27))
>Validators : Symbol(PortalFx.ViewModels.Controls.Validators, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 36))
>Validator : Symbol(PortalFx.ViewModels.Controls.Validators.Validator, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 48))
>TValue : Symbol(TValue, Decl(genericClassPropertyInheritanceSpecialization.ts, 63, 19))
}
class ViewModel<TValue> implements Contract<TValue> {
>ViewModel : Symbol(ViewModel, Decl(genericClassPropertyInheritanceSpecialization.ts, 66, 1))
>TValue : Symbol(TValue, Decl(genericClassPropertyInheritanceSpecialization.ts, 69, 16))
>Contract : Symbol(Contract, Decl(genericClassPropertyInheritanceSpecialization.ts, 61, 1))
>TValue : Symbol(TValue, Decl(genericClassPropertyInheritanceSpecialization.ts, 69, 16))
public validators: KnockoutObservableArray<PortalFx.ViewModels.Controls.Validators.Validator<TValue>> = ko.observableArray<PortalFx.ViewModels.Controls.Validators.Validator<TValue>>();
>validators : Symbol(ViewModel.validators, Decl(genericClassPropertyInheritanceSpecialization.ts, 69, 53))
>KnockoutObservableArray : Symbol(KnockoutObservableArray, Decl(genericClassPropertyInheritanceSpecialization.ts, 10, 1))
>PortalFx : Symbol(PortalFx, Decl(genericClassPropertyInheritanceSpecialization.ts, 50, 1))
>ViewModels : Symbol(PortalFx.ViewModels, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 16))
>Controls : Symbol(PortalFx.ViewModels.Controls, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 27))
>Validators : Symbol(PortalFx.ViewModels.Controls.Validators, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 36))
>Validator : Symbol(PortalFx.ViewModels.Controls.Validators.Validator, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 48))
>TValue : Symbol(TValue, Decl(genericClassPropertyInheritanceSpecialization.ts, 69, 16))
>ko.observableArray : Symbol(ko.observableArray, Decl(genericClassPropertyInheritanceSpecialization.ts, 36, 14))
>ko : Symbol(ko, Decl(genericClassPropertyInheritanceSpecialization.ts, 33, 1))
>observableArray : Symbol(ko.observableArray, Decl(genericClassPropertyInheritanceSpecialization.ts, 36, 14))
>PortalFx : Symbol(PortalFx, Decl(genericClassPropertyInheritanceSpecialization.ts, 50, 1))
>ViewModels : Symbol(PortalFx.ViewModels, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 16))
>Controls : Symbol(PortalFx.ViewModels.Controls, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 27))
>Validators : Symbol(PortalFx.ViewModels.Controls.Validators, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 36))
>Validator : Symbol(PortalFx.ViewModels.Controls.Validators.Validator, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 48))
>TValue : Symbol(TValue, Decl(genericClassPropertyInheritanceSpecialization.ts, 69, 16))
}
|