@types/semver
- Version 7.7.1
- Published
- 24.4 kB
- No dependencies
- MIT license
Install
npm i @types/semveryarn add @types/semverpnpm add @types/semverOverview
TypeScript definitions for semver
Index
Variables
variable RELEASE_TYPES
const RELEASE_TYPES: ReleaseType[];variable SEMVER_SPEC_VERSION
const SEMVER_SPEC_VERSION: string;Interfaces
interface CoerceOptions
interface CoerceOptions extends Options {}property includePrerelease
includePrerelease?: boolean | undefined;- If the - options.includePrereleaseflag is set, then the- coerceresult will contain prerelease and build parts of a version. For example,- 1.2.3.4-rc.1+rev.2will preserve prerelease- rc.1and build- rev.2in the result.- false 7.6.0 
property rtl
rtl?: boolean | undefined;- If the - options.rtlflag is set, then- coercewill return the right-most coercible tuple that does not share an ending index with a longer coercible tuple. For example,- 1.2.3.4will return- 2.3.4in rtl mode, not- 4.0.0.- 1.2.3/4will return- 4.0.0, because the- 4is not a part of any other overlapping SemVer tuple.- false 6.2.0 
interface RangeOptions
interface RangeOptions extends Options {}property includePrerelease
includePrerelease?: boolean | undefined;Type Aliases
type Operator
type Operator = '===' | '!==' | '' | '=' | '==' | '!=' | '>' | '>=' | '<' | '<=';type ReleaseType
type ReleaseType =    | 'major'    | 'premajor'    | 'minor'    | 'preminor'    | 'patch'    | 'prepatch'    | 'prerelease'    | 'release';Package Files (1)
Dependencies (0)
No dependencies.
Dev Dependencies (0)
No dev dependencies.
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/semver.
- Markdown[](https://www.jsdocs.io/package/@types/semver)
- HTML<a href="https://www.jsdocs.io/package/@types/semver"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
 Package analyzed in 3159 ms.
- Missing or incorrect documentation? Open an issue for this package.
