@hashgraph/solo
    Preparing search index...

    Type Parameters

    • T extends SemVer | number
    Index

    Constructors

    Properties

    value: T

    Methods

    • Validates if a string is a valid semantic version and handles the 'v' prefix

      Parameters

      • versionString: string
      • isNeedPrefix: boolean = false

        If true, adds 'v' prefix if missing; if false, removes 'v' prefix if present

      • label: string = 'Version'

        Label to use in error messages (e.g., 'Release tag', 'Version')

      Returns string

      The processed version string with proper prefix handling

      SoloError or IllegalArgumentError if the version string is invalid