Skip to main content
Version: v0.0.8

Variable: ALL_WARNING_MESSAGES

const ALL_WARNING_MESSAGES: ReadonlySet<string>

Every message string this library can put on a warning. Exported so a consumer, or a conformance gate, can assert set membership: if ALL_WARNING_MESSAGES.has(w.message) is ever false, something interpolated document bytes into a diagnostic.

Example

import { parseX12, ALL_WARNING_MESSAGES } from "@cosyte/x12";
const ix = parseX12(raw);
ix.warnings.every((w) => ALL_WARNING_MESSAGES.has(w.message)); // true, always