aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/core/types/version.d.tl18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/luarocks/core/types/version.d.tl b/src/luarocks/core/types/version.d.tl
new file mode 100644
index 00000000..92a80996
--- /dev/null
+++ b/src/luarocks/core/types/version.d.tl
@@ -0,0 +1,18 @@
1local record version
2 record Version
3 is {number}
4 string: string
5 revision: number
6 metamethod __eq: function(Version, Version): boolean
7 metamethod __lt: function(Version, Version): boolean
8 metamethod __le: function(Version, Version): boolean
9 end
10
11 record Constraint
12 op: string
13 version: Version | string
14 no_upgrade: boolean
15 end
16 end
17
18 return version \ No newline at end of file