Complete worked example
typescript
type Status = "draft" | "published";
let current: Status = "draft";
current = "published";
const defaults = { status: "draft" } as const;- Reasoning
- The union permits future state changes; as const preserves only the fixed configuration.