1 | import SemVer = require('../classes/semver');
|
2 |
|
3 | /**
|
4 | * Compares two versions including build identifiers (the bit after `+` in the semantic version string).
|
5 | *
|
6 | * Sorts in ascending order when passed to `Array.sort()`.
|
7 | *
|
8 | * @return
|
9 | * - `0` if `v1` == `v2`
|
10 | * - `1` if `v1` is greater
|
11 | * - `-1` if `v2` is greater.
|
12 | *
|
13 | * @since 6.1.0
|
14 | */
|
15 | declare function compareBuild(a: string | SemVer, b: string | SemVer): 1 | 0 | -1;
|
16 | export = compareBuild;
|