@types/semver
- Version 7.5.8
- Published
- 23.3 kB
- No dependencies
- MIT license
Install
npm i @types/semver
yarn add @types/semver
pnpm add @types/semver
Overview
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;
property rtl
rtl?: boolean | undefined;
Used by
coerce()
to coerce from right to left.false
Example 1
coerce('1.2.3.4', { rtl: true }); // => SemVer { version: '2.3.4', ... }
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';
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[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](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 2690 ms. - Missing or incorrect documentation? Open an issue for this package.