hed-typescript API
    Preparing search index...

    Class SchemaSpec

    A schema version specification.

    Index
    • Constructor.

      Parameters

      • prefix: string

        The prefix of this schema.

      • version: string

        The version of this schema.

      • library: string = ''

        The library name of this schema.

      • localPath: string = ''

        The local path for this schema.

      Returns SchemaSpec

    library: string

    The library name of this schema.

    localPath: string

    The local path for this schema.

    prefix: string

    The prefix of this schema.

    version: string

    The version of this schema.

    • get localName(): string

      Compute the name for the bundled copy of this schema.

      Returns string

    • Determine if this schema specification is equivalent to another schema specification.

      Parameters

      • other: unknown

        A schema specification to compare with this one.

      Returns boolean

      Whether the other schema specification is equivalent to this one.

      Schema specifications are deemed equivalent if either of the following is true:

      • They have the same localPath
      • They have the same prefix, version, and library.
    • Compute the canonical form of this specification.

      Returns string

    • Parse a single schema specification string into a SchemaSpec object.

      Parameters

      • versionSpec: string

        A schema version specification string (e.g., "nickname:library_version").

      Returns SchemaSpec

      A schema specification object with parsed nickname, library, and version.

      If the schema specification format is invalid.