Skip to main content
Version: v0.0.4

Interface: AstmField

One ASTM field, as split from a record. The tree holds decoded component strings (escape sequences already resolved), while AstmField.raw preserves the exact wire text of the field for round-trip and audit.

components is the first repeat's components (the common single-repeat case); repeats holds every repeat when a field uses the repeat delimiter.

Properties

components

readonly components: readonly string[]

Components of the first repeat, each escape-decoded. Empty field → [""].


raw

readonly raw: string

The exact field text as it appeared on the wire (escapes NOT decoded).


repeats

readonly repeats: readonly readonly string[][]

Every repeat, each an array of decoded components. repeats[0] === components.