File: comparator.d.ts

package info (click to toggle)
node-semver 7.6.1%2B~7.5.8-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,028 kB
  • sloc: javascript: 4,726; makefile: 5
file content (17 lines) | stat: -rw-r--r-- 514 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import semver = require("../index");
import SemVer = require("./semver");

declare class Comparator {
    constructor(comp: string | Comparator, optionsOrLoose?: boolean | semver.Options);

    semver: SemVer;
    operator: "" | "=" | "<" | ">" | "<=" | ">=";
    value: string;
    loose: boolean;
    options: semver.Options;
    parse(comp: string): void;
    test(version: string | SemVer): boolean;
    intersects(comp: Comparator, optionsOrLoose?: boolean | semver.Options): boolean;
}

export = Comparator;