UNPKG

tsoid

Version:

Typed functional library to deal with async operations.

9 lines (8 loc) 265 B
import { FunctionA1 } from '../types'; /** * Compose two or more function into one function. * * @param {function} fnl * @param {function[]} fns */ export default function compose<A>(fnl: FunctionA1<any, any>, ...fns: FunctionA1<A, any>[]): (input: A) => any;