DEV Community

Discussion on: How 2 TypeScript: Serious business with TypeScript's infer keyword.

Collapse
 
yi profile image
Yaroslav

I guess it's worth mentioning there is built in type ReturnType<fn> which can be used to infer the return type of any given function.