Login
From:
effectivetypescript.com
(Uncensored)
subscribe
Using infer to unpack nested types
https://effectivetypescript.com/2023/11/29/infer-deep/
links
backlinks
Roast topics
Find topics
Find it!
TypeScript's infer keyword can infer quite a bit more than you might expect. It's extremely effective at extracting types from the sort of nested structures that you might get from codegen or an API specification.