@@ -39,24 +39,24 @@ export type FPFn<Fn extends FPFnInput, Arity extends FPArity> = Arity extends 4
3939 */
4040export interface FPFn1 < Result , Arg > {
4141 /**
42- * Returns the result of the function call .
42+ * Curried version of the function. Returns itself .
4343 */
44- ( arg : Arg ) : Result ;
44+ ( ) : FPFn1 < Result , Arg > ;
4545
4646 /**
47- * Curried version of the function. Returns itself .
47+ * Returns the result of the function call .
4848 */
49- ( ) : FPFn1 < Result , Arg > ;
49+ ( arg : Arg ) : Result ;
5050}
5151
5252/**
5353 * FP function interface with 2 arguments.
5454 */
5555export interface FPFn2 < Result , Arg2 , Arg1 > {
5656 /**
57- * Returns the result of the function call .
57+ * Curried version of the function. Returns itself .
5858 */
59- ( arg2 : Arg2 , arg1 : Arg1 ) : Result ;
59+ ( ) : FPFn2 < Result , Arg2 , Arg1 > ;
6060
6161 /**
6262 * Curried version of the function. Returns a function that accepts the rest
@@ -65,52 +65,52 @@ export interface FPFn2<Result, Arg2, Arg1> {
6565 ( arg2 : Arg2 ) : FPFn1 < Result , Arg1 > ;
6666
6767 /**
68- * Curried version of the function. Returns itself .
68+ * Returns the result of the function call .
6969 */
70- ( ) : FPFn2 < Result , Arg2 , Arg1 > ;
70+ ( arg2 : Arg2 , arg1 : Arg1 ) : Result ;
7171}
7272
7373/**
7474 * FP function interface with 3 arguments.
7575 */
7676export interface FPFn3 < Result , Arg3 , Arg2 , Arg1 > {
7777 /**
78- * Returns the result of the function call .
78+ * Curried version of the function. Returns itself .
7979 */
80- ( arg3 : Arg3 , arg2 : Arg2 , arg1 : Arg1 ) : Result ;
80+ ( ) : FPFn3 < Result , Arg3 , Arg2 , Arg1 > ;
8181
8282 /**
8383 * Curried version of the function. Returns a function that accepts the rest
8484 * arguments.
8585 */
86- ( arg3 : Arg3 , arg2 : Arg2 ) : FPFn1 < Result , Arg1 > ;
86+ ( arg3 : Arg3 ) : FPFn2 < Result , Arg2 , Arg1 > ;
8787
8888 /**
8989 * Curried version of the function. Returns a function that accepts the rest
9090 * arguments.
9191 */
92- ( arg3 : Arg3 ) : FPFn2 < Result , Arg2 , Arg1 > ;
92+ ( arg3 : Arg3 , arg2 : Arg2 ) : FPFn1 < Result , Arg1 > ;
9393
9494 /**
95- * Curried version of the function. Returns itself .
95+ * Returns the result of the function call .
9696 */
97- ( ) : FPFn3 < Result , Arg3 , Arg2 , Arg1 > ;
97+ ( arg3 : Arg3 , arg2 : Arg2 , arg1 : Arg1 ) : Result ;
9898}
9999
100100/**
101101 * FP function interface with 4 arguments.
102102 */
103103export interface FPFn4 < Result , Arg4 , Arg3 , Arg2 , Arg1 > {
104104 /**
105- * Returns the result of the function call .
105+ * Curried version of the function. Returns itself .
106106 */
107- ( arg4 : Arg4 , arg3 : Arg3 , arg2 : Arg2 , arg1 : Arg1 ) : Result ;
107+ ( ) : FPFn4 < Result , Arg4 , Arg3 , Arg2 , Arg1 > ;
108108
109109 /**
110110 * Curried version of the function. Returns a function that accepts the rest
111111 * arguments.
112112 */
113- ( arg4 : Arg4 , arg3 : Arg3 , arg2 : Arg2 ) : FPFn1 < Result , Arg1 > ;
113+ ( arg4 : Arg4 ) : FPFn3 < Result , Arg3 , Arg2 , Arg1 > ;
114114
115115 /**
116116 * Curried version of the function. Returns a function that accepts the rest
@@ -122,10 +122,10 @@ export interface FPFn4<Result, Arg4, Arg3, Arg2, Arg1> {
122122 * Curried version of the function. Returns a function that accepts the rest
123123 * arguments.
124124 */
125- ( arg4 : Arg4 ) : FPFn3 < Result , Arg3 , Arg2 , Arg1 > ;
125+ ( arg4 : Arg4 , arg3 : Arg3 , arg2 : Arg2 ) : FPFn1 < Result , Arg1 > ;
126126
127127 /**
128- * Curried version of the function. Returns itself .
128+ * Returns the result of the function call .
129129 */
130- ( ) : FPFn4 < Result , Arg4 , Arg3 , Arg2 , Arg1 > ;
130+ ( arg4 : Arg4 , arg3 : Arg3 , arg2 : Arg2 , arg1 : Arg1 ) : Result ;
131131}
0 commit comments