@idris-maps/yyyy-mm-dd
Version:
A date library dealing only with days in the YYYY-MM-DD format
16 lines (15 loc) • 574 B
TypeScript
/**
* Inspired by:
* https://gist.github.com/donnut/fd56232da58d25ceecf1
*/
export interface CurriedFunction2<T1, T2, R> {
(t1: T1): (t2: T2) => R;
(t1: T1, t2: T2): R;
}
export declare const curry2: <T1, T2, R>(fn: (a: T1, b: T2) => R) => CurriedFunction2<T1, T2, R>;
export interface CurriedFunction3<T1, T2, T3, R> {
(t1: T1): CurriedFunction2<T2, T3, R>;
(t1: T1, t2: T2): (t3: T3) => R;
(t1: T1, t2: T2, t3: T3): R;
}
export declare const curry3: <T1, T2, T3, R>(fn: (a: T1, b: T2, c: T3) => R) => CurriedFunction3<T1, T2, T3, R>;