Re:A generically typed pipe function in TypeScript
by archarios on Sunday August 07, 2022 @02:42PM
(#32378665)
Um, Ramda has pipe and types: 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#L1....
[ Parent
| on HN ]
Re:A generically typed pipe function in TypeScript
by upzylon on Sunday August 07, 2022 @02:57PM
(#32378798)
Looks like they define pipe separately for every number of arguments: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/mast...