What is a discriminated union in TypeScript and how does it help QA?
-
A
A union where all members share a common literal property used for type narrowing
-
B
A union that only includes primitive types
-
C
A union where members cannot overlap
-
D
A union that is automatically resolved by the compiler