[KongchangAI]
Conceptdiscriminated union

Discriminated Union

A type modeling technique in TypeScript that adds a literal field to each member of a union type, enabling the compiler to narrow types and exhaustively check all branches.

Timeline (last 90 days)

Oct 18

The review found inconsistent template args types, and the Skill suggested changing to a discriminated union or separate fields, but Matt Pocock considered this a false positive.

Unverified50%

All Facts (1)

Source Articles