import {Version} from '@serenity-js/core/lib/io'
public class | source

Version

A tiny type describing a version number, like 1.2.3

Extends:

TinyType → Version

Static Method Summary

Static Public Methods
public static

fromJSON(version: string): Version

Constructor Summary

Public Constructor
public

constructor(version: string)

Method Summary

Public Methods
public

isAtLeast(other: Version): boolean

public

major(): number

public

toString(): string

Static Public Methods

public static fromJSON(version: string): Version source

Params:

NameTypeAttributeDescription
version string

Returns:

Version

Public Constructors

public constructor(version: string) source

Params:

NameTypeAttributeDescription
version string

Public Methods

public isAtLeast(other: Version): boolean source

Params:

NameTypeAttributeDescription
other Version

Returns:

boolean

public major(): number source

Returns:

number

Major version number of a given package version, i.e. 1 in 1.2.3

public toString(): string source

Returns:

string