diff options
author | V1K1NGbg <victor@ilchev.com> | 2024-08-22 17:49:09 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2024-08-22 17:49:09 -0300 |
commit | 3839d3434be6091106b9560c0dae0ae501f986fe (patch) | |
tree | 374db08aeb26db51a0156e4d5ff5502cd91155a3 | |
parent | 6e3e4c392142675a7d249b132e5d9329da956bca (diff) | |
download | luarocks-3839d3434be6091106b9560c0dae0ae501f986fe.tar.gz luarocks-3839d3434be6091106b9560c0dae0ae501f986fe.tar.bz2 luarocks-3839d3434be6091106b9560c0dae0ae501f986fe.zip |
Teal: add type definition module luarocks.core.types.version
-rw-r--r-- | src/luarocks/core/types/version.d.tl | 18 |
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 @@ | |||
1 | local 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 | ||