I've also tried to play on the idea, but the implementation turned out to be a bit different. Rather than inferring the types from the functions provided, it constrains the functions to follow the return type of the previous one in their argument and retain their return type, transforming every function's type on the fly.
The downside to it is that it doesn't work well with generic functions, although this issue is with the TypeScript itself.
Truly a developer’s best friend. Scout APM is great for developers who want to find and fix performance issues in their applications. With Scout, we'll take care of the bugs so you can focus on building great things 🚀.
I am disappointed by dynamic typing
2 projects | news.ycombinator.com | 29 Nov 2022
3 projects | dev.to | 1 Nov 2022
Question about error handling in Typescript
3 projects | reddit.com/r/typescript | 20 Aug 2022
Any good source-to-source compiler guides?
8 projects | reddit.com/r/Racket | 1 Aug 2022
How to use advanced Typescript to define a `pipe` function
2 projects | dev.to | 11 Jun 2022