Skip to main content
Version: v0.0.2

Interface: CodeListSnapshot

A complete bundled code-list snapshot. meta carries provenance; codes is a frozen plain object so consumers can iterate or build their own lookups without going through the helper. Internal use prefers the per-snapshot lookup* helpers - they return a frozen CodeListEntry ergonomic for the helper APIs.

Example

import { CARC } from "@cosyte/x12";
Object.keys(CARC.codes).length; // count of bundled CARC codes
CARC.codes["45"]; // raw description string (or undefined)

Properties

codes

readonly codes: Readonly<Record<string, string>>


meta

readonly meta: CodeListMeta