hed-typescript API
    Preparing search index...

    Function checkFileVersion

    • Refuse a specification file whose file version major number this validator does not support.

      Parameters

      • data: unknown

        The parsed file.

      • versionKey: string

        The file's version key: "fileVersion" (reserved_tags.json) or "file_version" (character_sets.json, unit_plurals.json). The files spell it differently; that is the specification's choice.

      • fileName: string

        The file's name, for the message.

      Returns void

      An internalError if the key is missing, is not an X.Y.Z string, or has another major number.