Glossary: React Beyond the Basics
discriminated union
A union of object types that each have a `type` field with a different value. TypeScript narrows to the right member in each `case`, as with CartAction.
Glossary: React Beyond the Basics
A union of object types that each have a `type` field with a different value. TypeScript narrows to the right member in each `case`, as with CartAction.