Interface: X12ParseWarning
Data shape for every Tier-2 warning emitted by the parser. Warnings are
plain data (distinct from X12ParseError, which is a thrown Error
subclass) so they can be safely accumulated on X12Interchange.warnings
and passed to onWarning callbacks.
Example
import type { X12ParseWarning } from "@cosyte/x12";
const w: X12ParseWarning = {
code: "X12_PRE_005010",
message: "ISA-12 declares pre-005010 version.",
position: { segmentIndex: 0, interchangeIndex: 0, elementIndex: 12 },
};
Properties
code
readonlycode:X12WarningCode
message
readonlymessage:string
position
readonlyposition:X12Position