Dashboard
PHP:
8.2.30
OS:
Linux
User:
dh_nv8b2m
/
/
usr
/
share
/
nodejs
/
@types
/
semver
/
classes
📤 Upload
📝 New File
📁 New Folder
Close
Editing: semver.d.ts
import semver = require('../index'); declare class SemVer { constructor(version: string | SemVer, optionsOrLoose?: boolean | semver.Options); raw: string; loose: boolean; options: semver.Options; format(): string; inspect(): string; major: number; minor: number; patch: number; version: string; build: ReadonlyArray<string>; prerelease: ReadonlyArray<string | number>; /** * Compares two versions excluding build identifiers (the bit after `+` in the semantic version string). * * @return * - `0` if `this` == `other` * - `1` if `this` is greater * - `-1` if `other` is greater. */ compare(other: string | SemVer): 1 | 0 | -1; /** * Compares the release portion of two versions. * * @return * - `0` if `this` == `other` * - `1` if `this` is greater * - `-1` if `other` is greater. */ compareMain(other: string | SemVer): 1 | 0 | -1; /** * Compares the prerelease portion of two versions. * * @return * - `0` if `this` == `other` * - `1` if `this` is greater * - `-1` if `other` is greater. */ comparePre(other: string | SemVer): 1 | 0 | -1; /** * Compares the build identifier of two versions. * * @return * - `0` if `this` == `other` * - `1` if `this` is greater * - `-1` if `other` is greater. */ compareBuild(other: string | SemVer): 1 | 0 | -1; inc(release: semver.ReleaseType, identifier?: string): SemVer; } export = SemVer;
Save
Cancel