AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
TypeScript Function Overloading
Liquid mention is really a nice easy way to type an entire function, which honestly, I kind of prefer that syntax at Type import directly above a function than all the other junk getting in the way. A lot of us people are saying, oh, yeah, but what about generics? Well, what about one of the ones that I found was function overloading. It's actually quite amazing that I tried really hard to find spots where you could not do things. Even enums,. Enums is like the weird one in TypeScript because it's data and types in one, you know, like everything else in TypeScript is stripped at compile time, but enums are converted to these