Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Skipped
17 lines
500 B
Plaintext
17 lines
500 B
Plaintext
import semver = require("../index");
|
|
import SemVer = require("../classes/semver");
|
|
|
|
/**
|
|
* Pass in a comparison string, and it'll call the corresponding semver comparison function.
|
|
* "===" and "!==" do simple string comparison, but are included for completeness.
|
|
* Throws if an invalid comparison string is provided.
|
|
*/
|
|
declare function cmp(
|
|
v1: string | SemVer,
|
|
operator: semver.Operator,
|
|
v2: string | SemVer,
|
|
optionsOrLoose?: boolean | semver.Options,
|
|
): boolean;
|
|
|
|
export = cmp;
|