Add-On Documentation
  • Preparing search index...
  • The search index is not available
8Crafter's Server Utilities API
  • 8Crafter's Server Utilities API
  • Globals
  • modules
  • semver
  • compareBuild

Function compareBuild

  • compareBuild(
        a: string | Globals.modules.semver.SemVer,
        b: string | Globals.modules.semver.SemVer,
        optionsOrLoose?:
            | boolean
            | ../../../../AppData/Roaming/.minecraft_bedrock/installations/Main Release/packageData/development_behavior_packs/DebugSticksAndScreens/node_modules/@types/semver.Options,
    ): -1
    | 0
    | 1

    Compares two versions including build identifiers (the bit after + in the semantic version string).

    Sorts in ascending order when passed to Array.sort().

    Parameters

    • a: string | Globals.modules.semver.SemVer
    • b: string | Globals.modules.semver.SemVer
    • OptionaloptionsOrLoose:
          | boolean
          | ../../../../AppData/Roaming/.minecraft_bedrock/installations/Main Release/packageData/development_behavior_packs/DebugSticksAndScreens/node_modules/@types/semver.Options

    Returns -1 | 0 | 1

    • 0 if v1 == v2
    • 1 if v1 is greater
    • -1 if v2 is greater.

    Since

    6.1.0

    • Defined in ../../../../AppData/Roaming/.minecraft_bedrock/installations/Main Release/packageData/development_behavior_packs/DebugSticksAndScreens/node_modules/@types/semver/functions/compare-build.d.ts:16

Settings

Member Visibility
Add-On Documentation
8Crafter's Server Utilities API
  • Loading...

Generated using TypeDoc