diff --git a/knockout/knockout.d.ts b/knockout/knockout.d.ts index 57d4d4bf1..45548a5c7 100644 --- a/knockout/knockout.d.ts +++ b/knockout/knockout.d.ts @@ -69,6 +69,7 @@ interface KnockoutComputedStatic { } interface KnockoutComputed extends KnockoutObservable, KnockoutComputedFunctions { + fn: KnockoutComputedFunctions; dispose(): void; isActive(): boolean; @@ -109,6 +110,7 @@ interface KnockoutComputedDefine { disposeWhen? (): boolean; owner?: any; deferEvaluation?: boolean; + pure?: boolean; } interface KnockoutBindingContext { @@ -190,7 +192,10 @@ interface KnockoutVirtualElements { interface KnockoutExtenders { throttle(target: any, timeout: number): KnockoutComputed; - 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 {