Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    Function isNewerVersion

    • Return whether a target version (v1) is more advanced than some other reference version (v0). Supports either numeric or string version comparison with version parts separated by periods.

      Parameters

      • v1: string | number | null | undefined

        The target version

      • v0: string | number | null | undefined

        The reference version

      • Optionaloptions: { majorOnly?: boolean } = {}

        Additional options which affect the comparison.

        • OptionalmajorOnly?: boolean

          Compare only the major version numbers.

      Returns boolean

      Is v1 a more advanced version than v0?