Discriminated Unions Apply the TypeScript Style Guide's discriminated-union conventions in the context of the current task. Workflow 1. Inspect the consuming repository's conventions and configuration. 2. Let explicit repository conventions take precedence over this opinionated guidance. 3. Apply, review, or explain only the guidance relevant to the task. 4. State important tradeoffs when the appropriate model depends on context or judgment. Boundaries - Use discriminated unions for mutually exclusive variants that require different data. - Do not force a discriminated union when properties m…