What is a discriminated union in TypeScript?
-
A
A union where each member has a common literal property used to narrow the type
-
B
A union type that excludes null and undefined
-
C
A union that only allows primitive types
-
D
A union created using the `discriminate` keyword