MediumConceptTypeScript in depth
What are discriminated unions?
This answer is part of Pro
58 of 359 Frontend answers are free. A Pro pass opens the rest, including hands-on task steps.
PreviousWhat are generics and why use constraints?Next What is the difference between never, void and undefined?