node-dextrin - v0.4.0
    Preparing search index...

    Function compile

    • Compiles every entry of a decoded .dxns document into baseRegistry — a struct schema for each %schema(N){} entry, a named type_expr for every other entry. A refusal is a SchemaCompileError (category schema/compile), or a DXNError of category schema/duplicate-version for a version the registry has loaded already (DXN.md §4.8).

      Every named type in a document sees every other, in any order, and may reach itself through a guard -- a field, or a collection's elements (DXNS.md §5, Jan, 2026-10-20). names maps an entry's key to the name it is registered under -- a tree's full names (DXNS.md §6, layout.cjs); a bare symbol naming a sibling resolves to it.

      Parameters

      • schemaDoc: unknown

        a decoded .dxns document (see decode).

      • baseRegistry: export=
      • Optionalnames: Map<string, string> = ...

      Returns export=