updeep-remeda/types/util/curry.d.ts

13 lines
569 B
TypeScript
Raw Normal View History

2019-01-19 00:46:25 +00:00
export declare const _ = "@@updeep/placeholder";
interface SprawlingCurry<R, A extends any[]> {
(...args: A): R;
(): SprawlingCurry<R, A>;
}
export declare function curry1<R, A>(fn: (a: A) => R): SprawlingCurry<R, [A]>;
export declare function curry1<R, A>(fn: (a: A, ...args: any) => R): SprawlingCurry<R, [A, ...any[]]>;
export declare function curry2(fn: any): any;
export declare function curry3(fn: any): any;
export declare function curry4(fn: any): any;
export default function curry(fn: (...args: any[]) => any, length?: 1 | 2 | 3 | 4): any;
export {};