Skip to content

Encadenamiento

Encadenamiento = { PrimerRegistro: "S"; RegistroAnterior?: never; } | { PrimerRegistro?: never; RegistroAnterior: RegistroAnterior; }

Defined in: src/types.ts:40

Exclusive choice: exactly one branch, never both, never neither — an XSD xsd:choice. Each branch pins the other field to never rather than just omitting it: a plain two-branch union (each branch naming only its own field) would still let a literal carrying BOTH fields through, because a property name known to one union member is not “excess” when checking a fresh object literal against the other member. The never guard closes that hole so both-present is a type error too. See DetalleDesglose below for the same shape applied to a second xsd:choice in this file.