This repository has been archived by the owner on Jul 25, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipeP.d.ts
56 lines (56 loc) · 9.41 KB
/
pipeP.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/**
* Performs left-to-right composition of one or more Promise-returning
* functions. The leftmost function may have any arity; the remaining functions
* must be unary.
*
* @func
* @memberOf R
* @since v0.10.0
* @category Function
* @sig ((a -> Promise b), (b -> Promise c), ..., (y -> Promise z)) -> (a -> Promise z)
* @param {...Function} functions
* @return {Function}
* @see R.composeP
* @example
*
* // followersForUser :: String -> Promise [User]
* var followersForUser = R.pipeP(db.getUserById, db.getFollowers);
*/
declare const pipeP: typeof $;
declare function $<V1, R1>(fn1: (v1: V1) => PromiseLike<R1> | R1): (v1: V1) => PromiseLike<R1>;
declare function $<V1, V2, R1>(fn1: (v1: V1, v2: V2) => PromiseLike<R1> | R1): (v1: V1, v2: V2) => PromiseLike<R1>;
declare function $<V1, V2, V3, R1>(fn1: (v1: V1, v2: V2, v3: V3) => PromiseLike<R1> | R1): (v1: V1, v2: V2, v3: V3) => PromiseLike<R1>;
declare function $<V1, V2, V3, V4, R1>(fn1: (v1: V1, v2: V2, v3: V3, v4: V4) => PromiseLike<R1> | R1): (v1: V1, v2: V2, v3: V3, v4: V4) => PromiseLike<R1>;
declare function $<V1, V2, V3, V4, V5, R1>(fn1: (v1: V1, v2: V2, v3: V3, v4: V4, v5: V5) => PromiseLike<R1> | R1): (v1: V1, v2: V2, v3: V3, v4: V4, v5: V5) => PromiseLike<R1>;
declare function $<V1, V2, V3, V4, V5, V6, R1>(fn1: (v1: V1, v2: V2, v3: V3, v4: V4, v5: V5, v6: V6) => PromiseLike<R1> | R1): (v1: V1, v2: V2, v3: V3, v4: V4, v5: V5, v6: V6) => PromiseLike<R1>;
declare function $<V1, R1, R2>(fn1: (v1: V1) => PromiseLike<R1> | R1, fn2: (v: R1) => PromiseLike<R2> | R2): (v1: V1) => PromiseLike<R2>;
declare function $<V1, V2, R1, R2>(fn1: (v1: V1, v2: V2) => PromiseLike<R1> | R1, fn2: (v: R1) => PromiseLike<R2> | R2): (v1: V1, v2: V2) => PromiseLike<R2>;
declare function $<V1, V2, V3, R1, R2>(fn1: (v1: V1, v2: V2, v3: V3) => PromiseLike<R1> | R1, fn2: (v: R1) => PromiseLike<R2> | R2): (v1: V1, v2: V2, v3: V3) => PromiseLike<R2>;
declare function $<V1, V2, V3, V4, R1, R2>(fn1: (v1: V1, v2: V2, v3: V3, v4: V4) => PromiseLike<R1> | R1, fn2: (v: R1) => PromiseLike<R2> | R2): (v1: V1, v2: V2, v3: V3, v4: V4) => PromiseLike<R2>;
declare function $<V1, V2, V3, V4, V5, R1, R2>(fn1: (v1: V1, v2: V2, v3: V3, v4: V4, v5: V5) => PromiseLike<R1> | R1, fn2: (v: R1) => PromiseLike<R2> | R2): (v1: V1, v2: V2, v3: V3, v4: V4, v5: V5) => PromiseLike<R2>;
declare function $<V1, V2, V3, V4, V5, V6, R1, R2>(fn1: (v1: V1, v2: V2, v3: V3, v4: V4, v5: V5, v6: V6) => PromiseLike<R1> | R1, fn2: (v: R1) => PromiseLike<R2> | R2): (v1: V1, v2: V2, v3: V3, v4: V4, v5: V5, v6: V6) => PromiseLike<R2>;
declare function $<V1, R1, R2, R3>(fn1: (v1: V1) => PromiseLike<R1> | R1, fn2: (v: R1) => PromiseLike<R2> | R2, fn3: (v: R2) => PromiseLike<R3> | R3): (v1: V1) => PromiseLike<R3>;
declare function $<V1, V2, R1, R2, R3>(fn1: (v1: V1, v2: V2) => PromiseLike<R1> | R1, fn2: (v: R1) => PromiseLike<R2> | R2, fn3: (v: R2) => PromiseLike<R3> | R3): (v1: V1, v2: V2) => PromiseLike<R3>;
declare function $<V1, V2, V3, R1, R2, R3>(fn1: (v1: V1, v2: V2, v3: V3) => PromiseLike<R1> | R1, fn2: (v: R1) => PromiseLike<R2> | R2, fn3: (v: R2) => PromiseLike<R3> | R3): (v1: V1, v2: V2, v3: V3) => PromiseLike<R3>;
declare function $<V1, V2, V3, V4, R1, R2, R3>(fn1: (v1: V1, v2: V2, v3: V3, v4: V4) => PromiseLike<R1> | R1, fn2: (v: R1) => PromiseLike<R2> | R2, fn3: (v: R2) => PromiseLike<R3> | R3): (v1: V1, v2: V2, v3: V3, v4: V4) => PromiseLike<R3>;
declare function $<V1, V2, V3, V4, V5, R1, R2, R3>(fn1: (v1: V1, v2: V2, v3: V3, v4: V4, v5: V5) => PromiseLike<R1> | R1, fn2: (v: R1) => PromiseLike<R2> | R2, fn3: (v: R2) => PromiseLike<R3> | R3): (v1: V1, v2: V2, v3: V3, v4: V4, v5: V5) => PromiseLike<R3>;
declare function $<V1, V2, V3, V4, V5, V6, R1, R2, R3>(fn1: (v1: V1, v2: V2, v3: V3, v4: V4, v5: V5, v6: V6) => PromiseLike<R1> | R1, fn2: (v: R1) => PromiseLike<R2> | R2, fn3: (v: R2) => PromiseLike<R3> | R3): (v1: V1, v2: V2, v3: V3, v4: V4, v5: V5, v6: V6) => PromiseLike<R3>;
declare function $<V1, R1, R2, R3, R4>(fn1: (v1: V1) => PromiseLike<R1> | R1, fn2: (v: R1) => PromiseLike<R2> | R2, fn3: (v: R2) => PromiseLike<R3> | R3, fn4: (v: R3) => PromiseLike<R4> | R4): (v1: V1) => PromiseLike<R4>;
declare function $<V1, V2, R1, R2, R3, R4>(fn1: (v1: V1, v2: V2) => PromiseLike<R1> | R1, fn2: (v: R1) => PromiseLike<R2> | R2, fn3: (v: R2) => PromiseLike<R3> | R3, fn4: (v: R3) => PromiseLike<R4> | R4): (v1: V1, v2: V2) => PromiseLike<R4>;
declare function $<V1, V2, V3, R1, R2, R3, R4>(fn1: (v1: V1, v2: V2, v3: V3) => PromiseLike<R1> | R1, fn2: (v: R1) => PromiseLike<R2> | R2, fn3: (v: R2) => PromiseLike<R3> | R3, fn4: (v: R3) => PromiseLike<R4> | R4): (v1: V1, v2: V2, v3: V3) => PromiseLike<R4>;
declare function $<V1, V2, V3, V4, R1, R2, R3, R4>(fn1: (v1: V1, v2: V2, v3: V3, v4: V4) => PromiseLike<R1> | R1, fn2: (v: R1) => PromiseLike<R2> | R2, fn3: (v: R2) => PromiseLike<R3> | R3, fn4: (v: R3) => PromiseLike<R4> | R4): (v1: V1, v2: V2, v3: V3, v4: V4) => PromiseLike<R4>;
declare function $<V1, V2, V3, V4, V5, R1, R2, R3, R4>(fn1: (v1: V1, v2: V2, v3: V3, v4: V4, v5: V5) => PromiseLike<R1> | R1, fn2: (v: R1) => PromiseLike<R2> | R2, fn3: (v: R2) => PromiseLike<R3> | R3, fn4: (v: R3) => PromiseLike<R4> | R4): (v1: V1, v2: V2, v3: V3, v4: V4, v5: V5) => PromiseLike<R4>;
declare function $<V1, V2, V3, V4, V5, V6, R1, R2, R3, R4>(fn1: (v1: V1, v2: V2, v3: V3, v4: V4, v5: V5, v6: V6) => PromiseLike<R1> | R1, fn2: (v: R1) => PromiseLike<R2> | R2, fn3: (v: R2) => PromiseLike<R3> | R3, fn4: (v: R3) => PromiseLike<R4> | R4): (v1: V1, v2: V2, v3: V3, v4: V4, v5: V5, v6: V6) => PromiseLike<R4>;
declare function $<V1, R1, R2, R3, R4, R5>(fn1: (v1: V1) => PromiseLike<R1> | R1, fn2: (v: R1) => PromiseLike<R2> | R2, fn3: (v: R2) => PromiseLike<R3> | R3, fn4: (v: R3) => PromiseLike<R4> | R4, fn5: (v: R4) => PromiseLike<R5> | R5): (v1: V1) => PromiseLike<R5>;
declare function $<V1, V2, R1, R2, R3, R4, R5>(fn1: (v1: V1, v2: V2) => PromiseLike<R1> | R1, fn2: (v: R1) => PromiseLike<R2> | R2, fn3: (v: R2) => PromiseLike<R3> | R3, fn4: (v: R3) => PromiseLike<R4> | R4, fn5: (v: R4) => PromiseLike<R5> | R5): (v1: V1, v2: V2) => PromiseLike<R5>;
declare function $<V1, V2, V3, R1, R2, R3, R4, R5>(fn1: (v1: V1, v2: V2, v3: V3) => PromiseLike<R1> | R1, fn2: (v: R1) => PromiseLike<R2> | R2, fn3: (v: R2) => PromiseLike<R3> | R3, fn4: (v: R3) => PromiseLike<R4> | R4, fn5: (v: R4) => PromiseLike<R5> | R5): (v1: V1, v2: V2, v3: V3) => PromiseLike<R5>;
declare function $<V1, V2, V3, V4, R1, R2, R3, R4, R5>(fn1: (v1: V1, v2: V2, v3: V3, v4: V4) => PromiseLike<R1> | R1, fn2: (v: R1) => PromiseLike<R2> | R2, fn3: (v: R2) => PromiseLike<R3> | R3, fn4: (v: R3) => PromiseLike<R4> | R4, fn5: (v: R4) => PromiseLike<R5> | R5): (v1: V1, v2: V2, v3: V3, v4: V4) => PromiseLike<R5>;
declare function $<V1, V2, V3, V4, V5, R1, R2, R3, R4, R5>(fn1: (v1: V1, v2: V2, v3: V3, v4: V4, v5: V5) => PromiseLike<R1> | R1, fn2: (v: R1) => PromiseLike<R2> | R2, fn3: (v: R2) => PromiseLike<R3> | R3, fn4: (v: R3) => PromiseLike<R4> | R4, fn5: (v: R4) => PromiseLike<R5> | R5): (v1: V1, v2: V2, v3: V3, v4: V4, v5: V5) => PromiseLike<R5>;
declare function $<V1, V2, V3, V4, V5, V6, R1, R2, R3, R4, R5>(fn1: (v1: V1, v2: V2, v3: V3, v4: V4, v5: V5, v6: V6) => PromiseLike<R1> | R1, fn2: (v: R1) => PromiseLike<R2> | R2, fn3: (v: R2) => PromiseLike<R3> | R3, fn4: (v: R3) => PromiseLike<R4> | R4, fn5: (v: R4) => PromiseLike<R5> | R5): (v1: V1, v2: V2, v3: V3, v4: V4, v5: V5, v6: V6) => PromiseLike<R5>;
declare function $<V1, R1, R2, R3, R4, R5, R6>(fn1: (v1: V1) => PromiseLike<R1> | R1, fn2: (v: R1) => PromiseLike<R2> | R2, fn3: (v: R2) => PromiseLike<R3> | R3, fn4: (v: R3) => PromiseLike<R4> | R4, fn5: (v: R4) => PromiseLike<R5> | R5, fn6: (v: R5) => PromiseLike<R6> | R6): (v1: V1) => PromiseLike<R6>;
declare function $<V1, V2, R1, R2, R3, R4, R5, R6>(fn1: (v1: V1, v2: V2) => PromiseLike<R1> | R1, fn2: (v: R1) => PromiseLike<R2> | R2, fn3: (v: R2) => PromiseLike<R3> | R3, fn4: (v: R3) => PromiseLike<R4> | R4, fn5: (v: R4) => PromiseLike<R5> | R5, fn6: (v: R5) => PromiseLike<R6> | R6): (v1: V1, v2: V2) => PromiseLike<R6>;
declare function $<V1, V2, V3, R1, R2, R3, R4, R5, R6>(fn1: (v1: V1, v2: V2, v3: V3) => PromiseLike<R1> | R1, fn2: (v: R1) => PromiseLike<R2> | R2, fn3: (v: R2) => PromiseLike<R3> | R3, fn4: (v: R3) => PromiseLike<R4> | R4, fn5: (v: R4) => PromiseLike<R5> | R5, fn6: (v: R5) => PromiseLike<R6> | R6): (v1: V1, v2: V2, v3: V3) => PromiseLike<R6>;
declare function $<V1, V2, V3, V4, R1, R2, R3, R4, R5, R6>(fn1: (v1: V1, v2: V2, v3: V3, v4: V4) => PromiseLike<R1> | R1, fn2: (v: R1) => PromiseLike<R2> | R2, fn3: (v: R2) => PromiseLike<R3> | R3, fn4: (v: R3) => PromiseLike<R4> | R4, fn5: (v: R4) => PromiseLike<R5> | R5, fn6: (v: R5) => PromiseLike<R6> | R6): (v1: V1, v2: V2, v3: V3, v4: V4) => PromiseLike<R6>;
declare function $<V1, V2, V3, V4, V5, R1, R2, R3, R4, R5, R6>(fn1: (v1: V1, v2: V2, v3: V3, v4: V4, v5: V5) => PromiseLike<R1> | R1, fn2: (v: R1) => PromiseLike<R2> | R2, fn3: (v: R2) => PromiseLike<R3> | R3, fn4: (v: R3) => PromiseLike<R4> | R4, fn5: (v: R4) => PromiseLike<R5> | R5, fn6: (v: R5) => PromiseLike<R6> | R6): (v1: V1, v2: V2, v3: V3, v4: V4, v5: V5) => PromiseLike<R6>;
declare function $<V1, V2, V3, V4, V5, V6, R1, R2, R3, R4, R5, R6>(fn1: (v1: V1, v2: V2, v3: V3, v4: V4, v5: V5, v6: V6) => PromiseLike<R1> | R1, fn2: (v: R1) => PromiseLike<R2> | R2, fn3: (v: R2) => PromiseLike<R3> | R3, fn4: (v: R3) => PromiseLike<R4> | R4, fn5: (v: R4) => PromiseLike<R5> | R5, fn6: (v: R5) => PromiseLike<R6> | R6): (v1: V1, v2: V2, v3: V3, v4: V4, v5: V5, v6: V6) => PromiseLike<R6>;
export = pipeP;