UNPKG

monad-ts

Version:

Monad-ts is a small library implements some of key monads and way to chain them in a pipe (flow) in JavaScript and TypeScript. Angular 2+ compatible.

10 lines (9 loc) 404 B
/** * Execute a function given a delay time. * @method debounceTime * @param {function} f - invoked function. * @param {number} d - a delay time. * @param {boolean} [immediate = true] immediate - first func call is immediate if true. * @return {function(...args:any[])=>void} */ export declare function debounceTime(f: Function, d: number, immediate?: boolean): (...args: any[]) => void;