Discriminated Union in TypeScript
Uhm, no discrimination here, at least not in the way you think. You might come across having to define some certain nearly similar objects and you wonder how you can tell React what to expect and what to use. Well, that's where discriminated unions c...
clueless-developer.hashnode.dev5 min read