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) • 319 B
TypeScript
import { GEN } from "./utils";
declare type Map<TYPE extends "sync" | "async"> = {
<T, R>(fn: (el: T) => R, gen: GEN<TYPE, T>): GEN<TYPE, R>;
<T, R>(fn: (el: T) => R): (gen: GEN<TYPE, T>) => GEN<TYPE, R>;
};
export declare const map: Map<"sync">;
export declare const mapAsync: Map<"async">;
export {};