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) 342 B
import { GEN } from "./utils"; declare type UniqBy<TYPE extends "sync" | "async"> = { <T, Key>(fn: (el: T) => Key, gen: GEN<TYPE, T>): GEN<TYPE, T>; <T, Key>(fn: (el: T) => Key): (gen: GEN<TYPE, T>) => GEN<TYPE, T>; }; export declare const uniqBy: UniqBy<"sync">; export declare const uniqByAsync: UniqBy<"async">; export {};