Added rateLimit extender.

This commit is contained in:
Igor Oleinikov
2014-06-28 14:47:31 +04:00
parent bb2432ce69
commit 2b88f1cf8b
+6 -1
View File
@@ -69,6 +69,7 @@ interface KnockoutComputedStatic {
}
interface KnockoutComputed<T> extends KnockoutObservable<T>, KnockoutComputedFunctions<T> {
fn: KnockoutComputedFunctions<any>;
dispose(): void;
isActive(): boolean;
@@ -109,6 +110,7 @@ interface KnockoutComputedDefine<T> {
disposeWhen? (): boolean;
owner?: any;
deferEvaluation?: boolean;
pure?: boolean;
}
interface KnockoutBindingContext {
@@ -190,7 +192,10 @@ interface KnockoutVirtualElements {
interface KnockoutExtenders {
throttle(target: any, timeout: number): KnockoutComputed<any>;
notify(target: any, notifyWhen: string): any;
notify(target: any, notifyWhen: string): any;
rateLimit(target: any, timeout: number): any;
rateLimit(target: any, options: { timeout: number; method?: string; }): any;
}
interface KnockoutUtils {