Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
archarios
· 4y ago · 0 comments
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...
.
Comments
[–]
upzylon
4y ago
Looks like they define pipe separately for every number of arguments:
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/mast...