Variable: TELECOM_FATAL_MESSAGES
constTELECOM_FATAL_MESSAGES:Readonly<Record<TelecomFatalCode,string>>
The frozen message registry for Telecom fatals: one fixed sentence per code,
and the only source an NcpdpTelecomParseError's message can come from.
The two length-related entries name the parser's own fixed header widths rather than the input's length. A byte count is a number and could not carry a value on its own, but it is also nothing a caller cannot measure from the input it just passed in, and dropping it is what lets a test assert that a message equals its registry entry exactly.
Example
import { TELECOM_FATAL_CODES, TELECOM_FATAL_MESSAGES } from "@cosyte/ncpdp/telecom";
TELECOM_FATAL_MESSAGES[TELECOM_FATAL_CODES.EMPTY_INPUT]; // "Input is empty."