Added overload and test for default subscribe

This commit is contained in:
EWOUT-QMINO\Ewout
2014-10-08 16:39:13 +02:00
parent 3b2aa1c713
commit bf9a691038
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -108,6 +108,7 @@ interface KnockoutObservableArray<T> extends KnockoutSubscribable<T[]>, Knockout
subscribe(callback: (changes : KnockoutArrayChange<T>[]) => void, target: any, event: string): KnockoutSubscription;
subscribe(callback: (changes : KnockoutArrayChange<T>[]) => void, target: any, event: 'arrayChange'): KnockoutSubscription;
subscribe(callback: (param : T[]) => void, target?: any, event?: string): KnockoutSubscription;
subscribe(callback: (param : T[]) => void, target: any, event: string): KnockoutSubscription;
subscribe(callback: (param : T[]) => void, target: any, event: 'change'): KnockoutSubscription;
subscribe(callback: (param : T[]) => void, target: any, event: 'beforeChange'): KnockoutSubscription;