diff options
author | V1K1NGbg <victor@ilchev.com> | 2024-08-22 17:49:09 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2024-10-21 13:30:51 -0300 |
commit | d1ee8fbe2929e4761d40777ad8209a15ee46d218 (patch) | |
tree | 2d14bff67b78633e7a9879b31af09c33f64f9103 | |
parent | 26acf4830498ebe483e565781cac7f7574c2348b (diff) | |
download | luarocks-d1ee8fbe2929e4761d40777ad8209a15ee46d218.tar.gz luarocks-d1ee8fbe2929e4761d40777ad8209a15ee46d218.tar.bz2 luarocks-d1ee8fbe2929e4761d40777ad8209a15ee46d218.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 | ||