Skip to content

isAlta

isAlta(record): record is RegistroAlta

Defined in: src/types.ts:211

Discriminates the two record types by the presence of TipoFactura, which only RegistroAlta carries. Shared by huella.ts (canonical-string building) and validate.ts (record validation) — both need the same discriminator, so it lives here rather than being redefined in each.

RegistroAlta | RegistroAnulacion

record is RegistroAlta