Content pfp
Content
@
0 reply
0 recast
0 reaction

Darryl Yeo 🛠️ pfp
Darryl Yeo 🛠️
@darrylyeo
Stumbled upon a gold mine of esoteric and situationally useful TypeScript techniques. For example, here’s how to compare numbers and count characters in a string… by recursively extending a tuple. Obviously. https://youtu.be/_-QYbP9rOhg
1 reply
0 recast
7 reactions

Phil Cockfield pfp
Phil Cockfield
@pjc
🫶 thank you Darryl!
1 reply
0 recast
1 reaction

Phil Cockfield pfp
Phil Cockfield
@pjc
going straight into my `common` types library!
1 reply
0 recast
1 reaction

Phil Cockfield pfp
Phil Cockfield
@pjc
it's frick'en nuts that the type system is turing complete - and here he's showing recursion and branching with the type definition. 💪
1 reply
0 recast
1 reaction