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?
readonlyoptionalcomponentIndex?:number
1-based component index within the field, when the deviation is component-scoped.
fieldIndex?
readonlyoptionalfieldIndex?:number
1-based field index within the record (ASTM fields are 1-indexed).
recordIndex
readonlyrecordIndex:number
0-based ordinal of the record within the message.
recordType?
readonlyoptionalrecordType?:string
The record's type letter (H/P/O/R/L/…), when known.