Files
SnowLuma/.pnpm-store/v11/files/fa/466bbec75ff045ff31eec98d078df69c962fd989631d36ca4348b9ed31e36306a78e2dbc355e97249b4c6ce2a5824cedde7fe36bfe4bc781309c4774072a42
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

15 lines
722 B
Plaintext

import Range = require("../classes/range");
import semver = require("../index");
/**
* Return a "simplified" range that matches the same items in `versions` list as the range specified.
* Note that it does *not* guarantee that it would match the same versions in all cases,
* only for the set of versions provided.
* This is useful when generating ranges by joining together multiple versions with `||` programmatically,
* to provide the user with something a bit more ergonomic.
* If the provided range is shorter in string-length than the generated range, then that is returned.
*/
declare function simplify(ranges: string[], range: string | Range, options?: semver.Options): string | Range;
export = simplify;