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

    Class Schema

    A schema: a root reference plus an environment of named records.

    Index
    env: ReadonlyMap<string, Record>

    Map of record names to their Record definitions.

    root: RefType

    Reference to the root record in the schema environment.

    • True if every document this schema accepts is also accepted by other. Delegates to ops/subschema.ts.

      Parameters

      Returns boolean

    • True if both schemas accept exactly the same documents. Delegates to ops/subschema.ts.

      Parameters

      Returns boolean

    • The minimal subschema recognizing only documents built from labels. Delegates to ops/extract.ts.

      Parameters

      • ...labels: string[]

      Returns Schema

    • True iff this schema's root record is unsatisfiable. Delegates to ops/prune.ts.

      Returns boolean

    • The canonical minimal schema equivalent to this one. Delegates to ops/minimize.ts.

      Returns Schema

    • An equivalent schema with everything that can never match removed. Delegates to ops/prune.ts.

      Returns Schema