UNPKG

@umijs/deps

Version:

[![Install size](https://badgen.net/packagephobia/install/@umijs/deps)](https://packagephobia.now.sh/result?p=@umijs/deps)

18 lines (14 loc) 518 B
import sermver = require('../index'); import SemVer = require('./semver'); declare class Comparator { constructor(comp: string | Comparator, optionsOrLoose?: boolean | sermver.Options); semver: SemVer; operator: '' | '=' | '<' | '>' | '<=' | '>='; value: string; loose: boolean; options: sermver.Options; parse(comp: string): void; test(version: string | SemVer): boolean; intersects(comp: Comparator, optionsOrLoose?: boolean | sermver.Options): boolean; } export = Comparator;