// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. import{OPERATORS}from"./_constants.ts"; /** * The possible release types are used as an operator for the * increment function and as a result of the difference function. */exporttypeReleaseType=|"pre"|"major"|"premajor"|"minor"|"preminor"|"patch"|"prepatch"|"prerelease"; /** * SemVer comparison operators. */exporttypeOperator=typeofOPERATORS[number]; /** * The shape of a valid semantic version comparator * @example >=0.0.0 */exportinterfaceComparatorextendsSemVer{ operator:Operator;/** * @deprecated (will be removed in 0.215.0) {@linkcode Comparator} extends {@linkcode SemVer}. Use `major`, `minor`, `patch`, `prerelease`, and `build` properties instead. */ semver?:SemVer;} /** * A SemVer object parsed into its constituent parts. */exportinterfaceSemVer{ major:number; minor:number; patch:number; prerelease?:(string|number)[]; build?:string[];} /** * A type representing a semantic version range. The ranges consist of * a nested array, which represents a set of OR comparisons while the * inner array represents AND comparisons. */exporttypeRange=Comparator[][]; /** * A type representing a semantic version range. The ranges consist of * a nested array, which represents a set of OR comparisons while the * inner array represents AND comparisons. * * @deprecated (will be removed in 0.215.0) Use {@linkcode Range} instead. */exportinterfaceSemVerRange{// The outer array is OR while each inner array is AND ranges:Comparator[][];}