pipe
Calls the value accumulatively against all of the functions given left-to-right. The result of calling a function with the accumulated value will be given to the next function, and the result of the last function will be returned. If there are no functions given, the given value will be returned.
Returns
The result of accumulatively calling the given value against all of the functions given left-to-right.
Signature - util.ts#L53
function pipe<T>(x: T): T
function pipe<T, R>(x: T, f1: (x: T) => R): R
function pipe<T, A, R>(x: T, f1: (x: T) => A, f2: (x: A) => R): R
function pipe<T, A, B, R>(
x: T,
f1: (x: T) => A,
f2: (x: A) => B,
f3: (x: B) => R,
): R
function pipe<T, A, B, C, R>(
x: T,
f1: (x: T) => A,
f2: (x: A) => B,
f3: (x: B) => C,
f4: (x: C) => R,
): R
function pipe<T, A, B, C, D, R>(
x: T,
f1: (x: T) => A,
f2: (x: A) => B,
f3: (x: B) => C,
f4: (x: C) => D,
f5: (x: D) => R,
): R
function pipe<T, A, B, C, D, E, R>(
x: T,
f1: (x: T) => A,
f2: (x: A) => B,
f3: (x: B) => C,
f4: (x: C) => D,
f5: (x: D) => E,
f6: (x: E) => R,
): R
function pipe<T, A, B, C, D, E, F, R>(
x: T,
f1: (x: T) => A,
f2: (x: A) => B,
f3: (x: B) => C,
f4: (x: C) => D,
f5: (x: D) => E,
f6: (x: E) => F,
f7: (x: F) => R,
): R
function pipe<T, A, B, C, D, E, F, G, R>(
x: T,
f1: (x: T) => A,
f2: (x: A) => B,
f3: (x: B) => C,
f4: (x: C) => D,
f5: (x: D) => E,
f6: (x: E) => F,
f7: (x: F) => G,
f8: (x: G) => R,
): R
function pipe<T, A, B, C, D, E, F, G, H, R>(
x: T,
f1: (x: T) => A,
f2: (x: A) => B,
f3: (x: B) => C,
f4: (x: C) => D,
f5: (x: D) => E,
f6: (x: E) => F,
f7: (x: F) => G,
f8: (x: G) => H,
f9: (x: H) => R,
): R
function pipe<T, A, B, C, D, E, F, G, H, R>(
x: T,
f1: (x: T) => A,
f2: (x: A) => B,
f3: (x: B) => C,
f4: (x: C) => D,
f5: (x: D) => E,
f6: (x: E) => F,
f7: (x: F) => G,
f8: (x: G) => H,
f9: (x: H) => R,
...funcs: Array<(x: any) => any>
): R
function pipe<T>(x: T, ...fns: ((x: T) => T)[]): T