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) • 344 B
TypeScript
import { GEN } from "./utils";
declare type SplitEvery<TYPE extends "sync" | "async"> = {
<T>(size: number, gen: GEN<TYPE, T>): GEN<TYPE, T[]>;
(size: number): <T>(gen: GEN<TYPE, T>) => GEN<TYPE, T[]>;
};
export declare const splitEvery: SplitEvery<"sync">;
export declare const splitEveryAsync: SplitEvery<"async">;
export {};