On Mar 24, 2020, at 1:08 PM, Mario Valle <silicon...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "KnockoutJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to knockoutjs+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/knockoutjs/f7705b9a-566e-4b31-93c4-51188b9af0bc%40googlegroups.com.
interface KnockoutExtenders {
throttle(target: any, timeout: number): KnockoutComputed<any>;
notify(target: any, notifyWhen: string): any;
rateLimit(target: any, timeout: number): any;
rateLimit(target: any, options: { timeout: number; method?: string; }): any;
trackArrayChanges(target: any): any;
}
interface KnockoutExtenders {
logChange(target: any, option: any): KnockoutObservable<any>;
}
ko.extenders.logChange = function (target: KnockoutObservable<any>, option: any) {
target.subscribe(function (newValue) {
console.log(option + ": " + newValue);
});
return target;
};
To unsubscribe from this group and stop receiving emails from it, send an email to knock...@googlegroups.com.