Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
SemVerModule
SemVer
Class SemVer
Hierarchy
SemVerBase
SemVer
Index
Constructor methods
constructor
Properties
build
loose
major
minor
patch
prerelease
raw
version
Methods
compare
compareMain
comparePre
format
inc
inspect
toString
Constructor methods
constructor
(
version
:
string
, loose
?:
boolean
)
:
SemVer
Parameters
version:
string
loose?:
boolean
optional
Returns
SemVer
Properties
public
build
:
Array<string>
public
loose
:
boolean
public
major
:
number
public
minor
:
number
public
patch
:
number
public
prerelease
:
Array<string>
public
raw
:
string
public
version
:
string
Methods
public
compare
(
other
:
SemVer
)
:
number
Parameters
other:
SemVer
Returns
number
public
compareMain
(
other
:
SemVer
)
:
number
Parameters
other:
SemVer
Returns
number
public
comparePre
(
other
:
SemVer
)
:
number
Parameters
other:
SemVer
Returns
number
public
format
(
)
:
string
Returns
string
public
inc
(
release
:
string
)
:
SemVer
Parameters
release:
string
Returns
SemVer
public
inspect
(
)
:
string
Returns
string
public
toString
(
)
:
string
Returns
string
Globals
SemVerModule
semver
Comparator
Range
SemVer
constructor
build
loose
major
minor
patch
prerelease
raw
version
compare
compareMain
comparePre
format
inc
inspect
toString
SemVerBase
cmp
compare
eq
gt
gte
gtr
inc
lt
lte
ltr
maxSatisfying
neq
outside
rcompare
satisfies
valid
validRange