Skip to main content
Version: v0.0.2

Interface: IsaSegment

The decoded ISA interchange header. raw preserves the exact 106-byte ISA + terminator string from input so round-trip serialization is byte-exact regardless of any lenient normalization downstream. elements is the 16 ISA values, 1-indexed (elements[0] is the literal "ISA" name placeholder, elements[1] is ISA-01, ..., elements[16] is ISA-16).

Example

import type { IsaSegment } from "@cosyte/x12";
declare const isa: IsaSegment;
isa.elements[12]; // ISA-12 - version, expected "00501"
isa.elements[13]; // ISA-13 - interchange control number

Properties

elements

readonly elements: readonly string[]


raw

readonly raw: string