Currently the following gives a ParseError `Default for never`: ```ts import { type } from "arktype"; const Expired = type({ bookingCode: "string", passengers: [ { status: '"REJECTED"', reason: '"timeout"', }, ], registrationStatus: '"EXPIRED" = "EXPIRED"', }); const Rejected = type({ "bookingCode?": "never", passengers: [ { status: '"REJECTED"', reason: "string", }, ], registrationStatus: '"REJECTED" = "REJECTED"', }); const Thing = Expired.or(Rejected); const out = Thing({ bookingCode: "abc", passengers: [ { status: "REJECTED", reason: "timeout", }, ], }); ``` This union should be allowed
Activity
docs(type): cite the issues the release fixes and add the entries it …
ssalbdivad commentedon Nov 18, 2026
Fixed in 3.0.0-beta.0 (#1728). Try it with
npm i arktype@next.