@alextheman/utility - v4.3.5
    Preparing search index...

    Function parseVersionType

    • Parses the input and verifies it is a valid software version type (i.e. "major" | "minor" | "patch")

      Parameters

      • data: unknown

        The data to parse.

      Returns VersionType

      The given version type if allowed.

      If the data does not match one of the allowed version types ("major" | "minor" | "patch").