UNPKG

@backtrace/sourcemap-tools

Version:
96 lines (95 loc) 9.71 kB
export declare function flow<A, B>(fnAb: (a: A) => B | Promise<B>): (a: A) => Promise<B>; export declare function flow<A, B, C>(...fns: [...Parameters<typeof flow<A, B>>, (b: B) => C | Promise<C>]): (a: A) => Promise<C>; export declare function flow<A, B, C, D>(...fns: [...Parameters<typeof flow<A, B, C>>, (c: C) => D | Promise<D>]): (a: A) => Promise<D>; export declare function flow<A, B, C, D, E>(...fns: [...Parameters<typeof flow<A, B, C, D>>, (d: D) => E | Promise<E>]): (a: A) => Promise<E>; export declare function flow<A, B, C, D, E, F>(...fns: [...Parameters<typeof flow<A, B, C, D, E>>, (e: E) => F | Promise<F>]): (a: A) => Promise<F>; export declare function flow<A, B, C, D, E, F, G>(...fns: [...Parameters<typeof flow<A, B, C, D, E, F>>, (f: F) => G | Promise<G>]): (a: A) => Promise<G>; export declare function flow<A, B, C, D, E, F, G, H>(...fns: [...Parameters<typeof flow<A, B, C, D, E, F, G>>, (g: G) => H | Promise<H>]): (a: A) => Promise<H>; export declare function flow<A, B, C, D, E, F, G, H, I>(...fns: [...Parameters<typeof flow<A, B, C, D, E, F, G, H>>, (h: H) => I | Promise<I>]): (a: A) => Promise<I>; export declare function flow<A, B, C, D, E, F, G, H, I, J>(...fns: [...Parameters<typeof flow<A, B, C, D, E, F, G, H, I>>, (i: I) => J | Promise<J>]): (a: A) => Promise<J>; export declare function flow<A, B, C, D, E, F, G, H, I, J, K>(...fns: [...Parameters<typeof flow<A, B, C, D, E, F, G, H, I, J>>, (j: J) => K | Promise<K>]): (a: A) => Promise<K>; export declare function flow<A, B, C, D, E, F, G, H, I, J, K, L>(...fns: [...Parameters<typeof flow<A, B, C, D, E, F, G, H, I, J, K>>, (k: K) => L | Promise<L>]): (a: A) => Promise<L>; export declare function flow<A, B, C, D, E, F, G, H, I, J, K, L, M>(...fns: [...Parameters<typeof flow<A, B, C, D, E, F, G, H, I, J, K, L>>, (l: L) => M | Promise<M>]): (a: A) => Promise<M>; export declare function flow<A, B, C, D, E, F, G, H, I, J, K, L, M, N>(...fns: [...Parameters<typeof flow<A, B, C, D, E, F, G, H, I, J, K, L, M>>, (m: M) => N | Promise<N>]): (a: A) => Promise<N>; export declare function flow<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O>(...fns: [...Parameters<typeof flow<A, B, C, D, E, F, G, H, I, J, K, L, M, N>>, (n: N) => O | Promise<O>]): (a: A) => Promise<O>; export declare function flow<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>(...fns: [...Parameters<typeof flow<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O>>, (o: O) => P | Promise<P>]): (a: A) => Promise<P>; export declare function flow<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q>(...fns: [...Parameters<typeof flow<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>>, (p: P) => Q | Promise<Q>]): (a: A) => Promise<Q>; export declare function flow<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R>(...fns: [...Parameters<typeof flow<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q>>, (q: Q) => R | Promise<R>]): (a: A) => Promise<R>; export declare function flow<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S>(...fns: [...Parameters<typeof flow<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R>>, (r: R) => S | Promise<S>]): (a: A) => Promise<S>; export declare function flow<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T>(...fns: [ ...Parameters<typeof flow<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S>>, (s: S) => T | Promise<T> ]): (a: A) => Promise<T>; export declare function flow<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U>(...fns: [ ...Parameters<typeof flow<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T>>, (t: T) => U | Promise<U> ]): (a: A) => Promise<U>; export declare function flow<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V>(...fns: [ ...Parameters<typeof flow<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U>>, (u: U) => V | Promise<V> ]): (a: A) => Promise<V>; export declare function flow<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W>(...fns: [ ...Parameters<typeof flow<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V>>, (v: V) => W | Promise<W> ]): (a: A) => Promise<W>; export declare function flow<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X>(...fns: [ ...Parameters<typeof flow<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W>>, (w: W) => X | Promise<X> ]): (a: A) => Promise<X>; export declare function flow<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y>(...fns: [ ...Parameters<typeof flow<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X>>, (x: X) => Y | Promise<Y> ]): (a: A) => Promise<Y>; export declare function flow<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z>(...fns: [ ...Parameters<typeof flow<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y>>, (y: Y) => Z | Promise<Z> ]): (a: A) => Promise<Z>; export declare function pipe<A, B>(value: A, fnAb: (a: A) => B | Promise<B>): Promise<B>; export declare function pipe<A, B, C>(...args: [...Parameters<typeof pipe<A, B>>, (b: B) => C | Promise<C>]): Promise<C>; export declare function pipe<A, B, C, D>(...args: [...Parameters<typeof pipe<A, B, C>>, (c: C) => D | Promise<D>]): Promise<D>; export declare function pipe<A, B, C, D, E>(...args: [...Parameters<typeof pipe<A, B, C, D>>, (d: D) => E | Promise<E>]): Promise<E>; export declare function pipe<A, B, C, D, E, F>(...args: [...Parameters<typeof pipe<A, B, C, D, E>>, (e: E) => F | Promise<F>]): Promise<F>; export declare function pipe<A, B, C, D, E, F, G>(...args: [...Parameters<typeof pipe<A, B, C, D, E, F>>, (f: F) => G | Promise<G>]): Promise<G>; export declare function pipe<A, B, C, D, E, F, G, H>(...args: [...Parameters<typeof pipe<A, B, C, D, E, F, G>>, (g: G) => H | Promise<H>]): Promise<H>; export declare function pipe<A, B, C, D, E, F, G, H, I>(...args: [...Parameters<typeof pipe<A, B, C, D, E, F, G, H>>, (h: H) => I | Promise<I>]): Promise<I>; export declare function pipe<A, B, C, D, E, F, G, H, I, J>(...args: [...Parameters<typeof pipe<A, B, C, D, E, F, G, H, I>>, (i: I) => J | Promise<J>]): Promise<J>; export declare function pipe<A, B, C, D, E, F, G, H, I, J, K>(...args: [...Parameters<typeof pipe<A, B, C, D, E, F, G, H, I, J>>, (j: J) => K | Promise<K>]): Promise<K>; export declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L>(...args: [...Parameters<typeof pipe<A, B, C, D, E, F, G, H, I, J, K>>, (k: K) => L | Promise<L>]): Promise<L>; export declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M>(...args: [...Parameters<typeof pipe<A, B, C, D, E, F, G, H, I, J, K, L>>, (l: L) => M | Promise<M>]): Promise<M>; export declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N>(...args: [...Parameters<typeof pipe<A, B, C, D, E, F, G, H, I, J, K, L, M>>, (m: M) => N | Promise<N>]): Promise<N>; export declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O>(...args: [...Parameters<typeof pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N>>, (n: N) => O | Promise<O>]): Promise<O>; export declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>(...args: [...Parameters<typeof pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O>>, (o: O) => P | Promise<P>]): Promise<P>; export declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q>(...args: [...Parameters<typeof pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>>, (p: P) => Q | Promise<Q>]): Promise<Q>; export declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R>(...args: [...Parameters<typeof pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q>>, (Q: Q) => R | Promise<R>]): Promise<R>; export declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S>(...args: [ ...Parameters<typeof pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R>>, (r: R) => S | Promise<S> ]): Promise<S>; export declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T>(...args: [ ...Parameters<typeof pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S>>, (s: S) => T | Promise<T> ]): Promise<T>; export declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U>(...args: [ ...Parameters<typeof pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T>>, (t: T) => U | Promise<U> ]): Promise<U>; export declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V>(...args: [ ...Parameters<typeof pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U>>, (u: U) => V | Promise<V> ]): Promise<V>; export declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W>(...args: [ ...Parameters<typeof pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V>>, (v: V) => W | Promise<W> ]): Promise<W>; export declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X>(...args: [ ...Parameters<typeof pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W>>, (w: W) => X | Promise<X> ]): Promise<X>; export declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y>(...args: [ ...Parameters<typeof pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X>>, (x: X) => Y | Promise<Y> ]): Promise<Y>; export declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z>(...args: [ ...Parameters<typeof pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y>>, (y: Y) => Z | Promise<Z> ]): Promise<Z>;