UNPKG

tsoid

Version:

Typed functional library to deal with async operations.

9 lines (8 loc) 276 B
import { FunctionA1 } from '../types'; /** * Create a new function that represents all the functions piped * * @param {function} fn1 * @param {function[]} fns */ export default function pipe<A>(fn1: FunctionA1<A, any>, ...fns: FunctionA1<any, any>[]): (input: A) => any;