mimekit-ts - v1.0.0
    Preparing search index...

    Class Version

    Minimal representation of a .NET-style version.

    Index
    • Initializes a new version.

      Parameters

      • major: number

        The major version.

      • minor: number

        The minor version.

      • build: number = -1

        The build component, or -1 when unspecified.

      • revision: number = -1

        The revision component, or -1 when unspecified.

      Returns Version

    major: number

    The major version component.

    minor: number

    The minor version component.

    build: number

    The build component, or -1 when unspecified.

    revision: number

    The revision component, or -1 when unspecified.

    • Creates a Version from a parsed MIME-Version value.

      Parameters

      • value: MimeVersion

        The parsed MIME version.

      Returns Version

      The corresponding Version.

    • Compares this version to another version.

      Parameters

      • other: Version

        The version to compare.

      Returns number

      -1, 0, or 1 depending on ordering.

    • Formats this version.

      Returns string

      The dotted version string.