3 ms·
If you want to understand how things like this are implemented in type systems, I'd highly recommend Type-Level TypeScript [0]. I have no affiliation aside from
by shepherdjerred 3y ago
If you want to understand how things like this are implemented in type systems, I'd highly recommend Type-Level TypeScript [0]. I have no affiliation aside from having gone through the course and thoroughly enjoyed it.
TypeScript has such a rich type system that lets you do some crazy things, many of which allow you to have a _very_ ergonomic dev UX while maintaining compile time type safety.
[0]: https://type-level-typescript.com/ https://type-level-typescript.com/
- zarathustreal 3y agoA better (free) resource for this is the excellent blog post [0] by the creator of ts-toolbelt [1]. [0]: https://medium.com/free-code-camp/typescript-curry-ramda-types-f747e99744ab https://medium.com/free-code-camp/typescript-curry-ramda-typ... [1]: https://github.com/millsp/ts-toolbelt https://github.com/millsp/ts-toolbelt
- bsimpson 3y agoThanks! I bought it based on your recommendation, and I'm happy I did. It reminds me of Josh Comeau's articles, but for advanced TypeScript.