function isValidSemver(value) {
    var _a;
    if (typeof value !== 'string') {
        return false;
    }
    return ((_a = parse_1.default(value, { loose: false })) === null || _a === void 0 ? void 0 : _a.version) === value;
}
/**
 * Checks whether the given value is a valid, unprefixed SemVer version string.
 * The string must begin with the numerical major version.
 *
 * (The semver package has a similar function, but it permits v-prefixes.)
 *
 * @param value - The value to check.
 * @returns Whether the given value is a valid, unprefixed SemVer version
 * string.
 */
Checks whether the given value is a valid, unprefixed SemVer version string.
The string must begin with the numerical major version.

(The semver package has a similar function, but it permits v-prefixes.)

@param value - The value to check.
@returns Whether the given value is a valid, unprefixed SemVer version
string.
Checks whether the given value is a valid unprefixed SemVer version string . The string must begin with the numerical major version . ( The semver package has a similar function but it permits v - prefixes . ) @param value - The value to check . @returns Whether the given value is a valid unprefixed SemVer version string .
function isValidSemver(value) {
    var _a;
    if (typeof value !== 'string') {
        return false;
    }
    return ((_a = parse_1.default(value, { loose: false })) === null || _a === void 0 ? void 0 : _a.version) === value;
}
function isValidSemver ( value ) { var _a ; if ( typeof value !== 'string' ) { return false ; } return ( ( _a = parse_1 . default ( value , { loose : false } ) ) === null || _a === void 0 ? void 0 : _a . version ) === value ; }
Checks whether the given value is a valid, unprefixed SemVer version string.
Checks whether the given value is a valid unprefixed SemVer version string .