TypeScript enums have worn their welcome. In the early days before string unions became so powerful, there was no other option. Today, though, they are mor... (more…)
Read more »
Did you know you can create functions from type to type in Typescript? See how can it be done... (more…)
Read more »
Decided to write this blog post because I couldn’t find any documentation or online examples like the one I’m sharing here. Every example I’ve seen the user-defined type guard is used to replace the whole type definition and not specific properties. (more…)
Read more »
If you write code on the modern web, it's almost certain that your life has been shaped significantly by Luke Hoban's work. Luke has worked… (more…)
Read more »