Function: trailingGarbage()
trailingGarbage(
position):X12ParseWarning
Build an X12_TRAILING_GARBAGE warning. Emitted when non-empty bytes
appear after the IEA segment terminator and any optional CRLF. The bytes
are preserved verbatim on "./types.js".X12Interchange.trailingBytes so consumers can inspect,
measure, or re-emit them. Common cause: a second interchange concatenated
into the same file (multi-ISA, out of v1 scope; only the first
interchange is decoded).
Parameters
position
Returns
Example
import { trailingGarbage } from "@cosyte/x12";
const w = trailingGarbage({ segmentIndex: 6, interchangeIndex: 0 });