A semantic version range.

interface SemVerRange {
    contains(v: SemVer): boolean;
    expression: string;
    isAny(): boolean;
    toString(): string;
    visit(visitor: SemVerRangeVisitor): void;
}

Properties

expression: string

String representation of the version range.

Methods

  • Check if a version is included in the range.

    Parameters

    Returns boolean

    true if the version is included.

  • Check if the version range matches any version

    Returns boolean

    true if the range matches

  • Creates a string representation of the range.

    Returns string