Removed subscribe signatures in extending interfaces of subscribable. Changed signature of KnockoutSubscribable to have any parameter in subscribe callback.

This commit is contained in:
EWOUT-QMINO\Ewout
2014-10-07 15:41:10 +02:00
parent 9588d161e4
commit 67c09d58fc
+1 -4
View File
@@ -53,7 +53,7 @@ interface KnockoutSubscription {
}
interface KnockoutSubscribable<T> extends KnockoutSubscribableFunctions<T> {
subscribe(callback: (object: Object) => void, target?: any, event?: string): KnockoutSubscription;
subscribe(callback: (object: any) => void, target?: any, event?: string): KnockoutSubscription;
subscribe<TEvent>(callback: (newValue: TEvent) => void, target: any, event: string): KnockoutSubscription;
extend(requestedExtenders: { [key: string]: any; }): KnockoutSubscribable<T>;
getSubscriptionsCount(): number;
@@ -84,8 +84,6 @@ interface KnockoutObservableArrayStatic {
}
interface KnockoutObservableArray<T> extends KnockoutObservable<T[]>, KnockoutObservableArrayFunctions<T> {
subscribe(callback: (newValue: T[]) => void, target?: any, event?: string): KnockoutSubscription;
subscribe(callback: (changes: KnockoutArrayChange<T>[]) => void, target?: any, event?: string): KnockoutSubscription;
extend(requestedExtenders: { [key: string]: any; }): KnockoutObservableArray<T>;
}
@@ -103,7 +101,6 @@ interface KnockoutObservable<T> extends KnockoutSubscribable<T>, KnockoutObserva
valueHasMutated?:{(): void;};
valueWillMutate?:{(): void;};
subscribe(callback: (newValue: T) => void, target?: any, event?: string): KnockoutSubscription;
extend(requestedExtenders: { [key: string]: any; }): KnockoutObservable<T>;
}