Represents a generic version with major, minor, patch and buildNumber fields.

Hierarchy

  • Version

Properties

major: number

The major field of the version, such as 1 in version 1.5.3.4.

minor: number

The minor field of the version, such as 5 in version 1.5.3.4.

patch: number

The patch field of the version, such as 3 in version 1.5.3.4.

buildNumber: number

The build number field of the version, such as 4 in version 1.5.3.4.

Methods

  • Default constructor for Version.

    Parameters

    • major: number

      major field of the version.

    • minor: number

      minor field of the version.

    • patch: number

      patch field of the version.

    • buildNumber: number

      build number field of the version.

    Returns Version

    a Version instance.

  • Alternate constructor that creates a Version from a json.

    Parameters

    • json: any

      contains the source for instance creation.

    Returns Version

    a Version instance.

Generated using TypeDoc