Installation
npm install --save @types/is-semver
Summary
This package contains type definitions for is-semver (https://github.com/IonicaBizau/is-semver#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/is-semver.
index.d.ts
export = isSemver;
/**
* Check if an input value is a valid semver version or not.
*
* @param input The version string to check.
* @returns `true` if the input is a valid semver version or `false` otherwise.
*
* @example
* import isSemver = require("is-semver");
*
* console.log(isSemver("1.2.3"));
* // => true
*
* console.log(isSemver("a.b.c"));
* // => false
*
* console.log(isSemver("foo"));
* // => false
*/
declare function isSemver(input: string): boolean;
Additional Details
- Last updated: Tue, 07 Nov 2023 0337 GMT
- Dependencies: none
Credits
These definitions were written by BendingBender.