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

    Function compile

    • Compiles a decoded .dxns document into baseRegistry — a struct schema for each %schema{} entry, and a reusable named type for every other entry. predicates resolves any refine-fn: names used in the document.

      Parameters

      • schemaDoc: unknown
      • baseRegistry: export=
      • Optionalpredicates: { [name: string]: (resolved: { [k: string]: unknown }) => string | true } = {}

      Returns export=