UNPKG

514 BTypeScriptView Raw
1import semver = require('../index');
2import SemVer = require('./semver');
3
4declare class Comparator {
5 constructor(comp: string | Comparator, optionsOrLoose?: boolean | semver.Options);
6
7 semver: SemVer;
8 operator: '' | '=' | '<' | '>' | '<=' | '>=';
9 value: string;
10 loose: boolean;
11 options: semver.Options;
12 parse(comp: string): void;
13 test(version: string | SemVer): boolean;
14 intersects(comp: Comparator, optionsOrLoose?: boolean | semver.Options): boolean;
15}
16
17export = Comparator;