You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When mapping a discriminated union with .map() it causes the union to collapse into one merged type, losing it's discrimination.
I am not sure if this is a bug or a limitation of TypeScript runtime inference.
Activity
feat(type): infer .map() on a union per branch (#1524)
ssalbdivad commentedon Nov 18, 2026
Fixed in 3.0.0-beta.0 (#1728). Try it with
npm i arktype@next.