UNPKG

ramda-generators

Version:

A collection of lazily evaluated generators and functions to work with generators in Javascript and Typescript, following the style of Ramda's functions

9 lines (8 loc) 348 B
import { GEN } from "./utils"; declare type Debounce<TYPE extends "sync" | "async"> = { <T, K>(fn: (el: T) => K, gen: GEN<TYPE, T>): GEN<TYPE, K>; <T, K>(fn: (el: T) => K): (gen: GEN<TYPE, T>) => GEN<TYPE, K>; }; export declare const debounceBy: Debounce<"sync">; export declare const debounceByAsync: Debounce<"async">; export {};