Constructors
constructor
- new VersionNumber(major, minor, patch, build): VersionNumber
Parameters
- major: string | number
- minor: string | number
- patch: string | number
- build: string | number
Properties
build
build: string | number
major
major: string | number
minor
minor: string | number
patch
patch: string | number
Methods
compareTo
- compareTo(other): number
Returns number
isBuildKeyword
- isBuildKeyword(): boolean
Returns boolean
toString
- toString(): string
Returns string
Static
from
- from(versionString): VersionNumber
Parameters
- versionString: undefined | string
Static
isABuildKeyword
- isABuildKeyword(token): boolean
Returns boolean
Static
parseMajorMinor
- parseMajorMinor(versionString): {
major: null | number;
minor: null | number;
} Returns {
major: null | number;
minor: null | number;
}
major: null | number
minor: null | number
Separates at major.minor string into {major: Number, minor: Number} object