Skip to main content
Version: v0.0.4

Interface: AstmPosition

Where in a record stream a warning or fatal originated. Every field is positional; none is a value.

Example

import type { AstmPosition } from "@cosyte/astm";
const at: AstmPosition = { recordIndex: 3, recordType: "R", fieldIndex: 4 };

Properties

componentIndex?

readonly optional componentIndex?: number

1-based component index within the field, when the deviation is component-scoped.


fieldIndex?

readonly optional fieldIndex?: number

1-based field index within the record (ASTM fields are 1-indexed).


recordIndex

readonly recordIndex: number

0-based ordinal of the record within the message.


recordType?

readonly optional recordType?: string

The record's type letter (H/P/O/R/L/…), when known.