5 ms·
Um, Ramda has pipe and types: https://www.npmjs.com/package/@types/ramda https://www.npmjs.com/package/@types/ramda. Although I liked my own implementation of a
by archarios 4y ago
Um, Ramda has pipe and types: https://www.npmjs.com/package/@types/ramda https://www.npmjs.com/package/@types/ramda. Although I liked my own implementation of a pipeP (pipe that automatically unwraps promises) that let you specify the type of the input and output of the pipeline: https://github.com/chughes87/ramdaP-ts/blob/main/index.ts#L10 https://github.com/chughes87/ramdaP-ts/blob/main/index.ts#L1....
- upzylon 4y agoLooks like they define pipe separately for every number of arguments: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/ramda/index.d.ts#L3982 https://github.com/DefinitelyTyped/DefinitelyTyped/blob/mast...