Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It indeed ensures one a type level that this series of functions can work as a series so every subsequent function can accept the return type of the previous one.

The latest version seems to have abandoned the typing of the initial input, which makes the types a little simpler.

My point however is that the types you point our here are actually not particularly complex. They are just long, with lot's of inputs for the generics (and the syntax may be confusing). The types in the original article are much more complicated, with conditional type inference etc.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: