UNPKG

@utilify/core

Version:

Modern, strongly typed, and safe utility function library for JavaScript and TypeScript. Includes type checking, manipulation of arrays, objects, strings, dates, colors, numbers, regular expressions, and more. Compatible with Browser, Node.js, Deno, and B

14 lines 427 B
/** * @callback PipeCallback * @param {T} value * @returns {T} */ /** * Pipes multiple functions from left to right. * @template T * @param {...PipeCallback} callbacks - Functions to pipe. * @returns {(value: T) => T} The piped function. * @throws {TypeError} If any argument is not a function. */ export default function pipe<T>(...callbacks: ((value: T) => T)[]): (value: T) => T; //# sourceMappingURL=pipe.d.ts.map