deno.land / std@0.201.0 / semver / types.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
/** * The possible release types are used as an operator for the * increment function and as a result of the difference function. */export type ReleaseType = | "pre" | "major" | "premajor" | "minor" | "preminor" | "patch" | "prepatch" | "prerelease";
/** * SemVer comparison operators. */export type Operator = | "" | "=" | "==" | "===" | "!==" | "!=" | ">" | ">=" | "<" | "<=";
/** * The style to use when formatting a SemVer object into a string */export type FormatStyle = | "full" | "release" | "primary" | "build" | "pre" | "patch" | "minor" | "major";
/** * The shape of a valid semantic version comparator * @example >=0.0.0 */export interface SemVerComparator { operator: Operator; semver: SemVer; min: SemVer; max: SemVer;}
/** * A SemVer object parsed into its constituent parts. */export interface SemVer { major: number; minor: number; patch: number; prerelease: (string | number)[]; build: string[];}
type SemVerRangeAnd = SemVerComparator[];type SemVerRangeOr = SemVerRangeAnd[];
/** * 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. */export interface SemVerRange { // The outer array is OR while each inner array is AND ranges: SemVerRangeOr;}
std

Version Info

Tagged at
a year ago