News for hackers. Stuff that matters.
Re:A generically typed pipe function in TypeScript by upzylon on Sunday August 07, 2022 @04:49PM (#32379753)
Thanks! Yes, it should work with any number of arguments. Or at least in theory it does, it seems that around 47 chained functions TypeScript will give up and stops computing the type. It's written in TypeScript v4.7.2 but I didn't use any recently introduced features, so it should also work a few version back. How far back exactly, I'd need to check.

There are no comments on this comment yet.