UNPKG

@ionre/utils

Version:

utility functions

7 lines (6 loc) 514 B
export declare let compose: <A, B, C>(f: ((b: B) => C)) => (g: ((a: A) => B)) => (a: A) => C; export declare let composeAll: <A, B>(funcs: ((x: any) => any)[]) => (a: A) => B; export declare let effectify: <T, U>(f: (arg: T) => U) => (arg: T) => () => U; export declare let flip: <A, B, C>(f: ((a: A) => (b: B) => C)) => (b: B) => (a: A) => C; export declare let pipe: <A, B, C>(g: ((a: A) => B)) => (f: ((b: B) => C)) => (a: A) => C; export declare let pipeAll: <A, B>(funcs: ((x: any) => any)[]) => (a: A) => B;