@omnist-dev/omnist
    Preparing search index...

    Interface Format

    A registered format plugin: a name plus read/write/check callables.

    interface Format {
        check?: (node: unknown) => WriteReport;
        name: string;
        read: (text: string, opts?: unknown) => unknown;
        write: (node: unknown, opts?: unknown) => string;
    }
    Index
    check?: (node: unknown) => WriteReport

    node -> WriteReport; simulates a write without producing output.

    name: string

    Registered format name identifier (e.g. "json", "yaml", "oml").

    read: (text: string, opts?: unknown) => unknown

    text -> node. opts is format-specific (e.g. XML's { report } for read-time codec diagnostics, issue #123/D-3); most formats ignore it.

    write: (node: unknown, opts?: unknown) => string

    (node, opts?) -> text