UNPKG

tamda

Version:

Practical functional programming library for TypeScript

13 lines (12 loc) 347 B
import { WithValue } from '../with-value'; /** * Creates an object with functions `compose` and `pipe` that will * be immediately invoked with the provided value after construction. * * @example * use([1, 2, 3]).pipe(sum()); * // 6 * pipe (sum()) ([1, 2, 3]); * // 6 */ export declare function use<T>(value: T): WithValue<T>;