diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2024-10-21 14:50:52 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2024-10-21 14:50:52 -0300 |
commit | eae4e554d00000025c7d03e8a17bdb7245c7beff (patch) | |
tree | 04b7db1d2dffd9c91570f96110e240b92c30dda2 | |
parent | d1e854908ae9b8f20fa7209bcf8daed74e08fea0 (diff) | |
download | luarocks-eae4e554d00000025c7d03e8a17bdb7245c7beff.tar.gz luarocks-eae4e554d00000025c7d03e8a17bdb7245c7beff.tar.bz2 luarocks-eae4e554d00000025c7d03e8a17bdb7245c7beff.zip |
types: use 'local type' on type aliases
-rw-r--r-- | types/socket.d.tl | 6 | ||||
-rw-r--r-- | types/ssl/https.d.tl | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/types/socket.d.tl b/types/socket.d.tl index e62e907b..f450503b 100644 --- a/types/socket.d.tl +++ b/types/socket.d.tl | |||
@@ -1,6 +1,6 @@ | |||
1 | local ltn12 = require("ltn12") | 1 | local ltn12 = require("ltn12") |
2 | local Sink = ltn12.Sink | 2 | local type Sink = ltn12.Sink |
3 | local Source = ltn12.Source | 3 | local type Source = ltn12.Source |
4 | 4 | ||
5 | local record socket | 5 | local record socket |
6 | record TCP | 6 | record TCP |
@@ -155,4 +155,4 @@ local record socket | |||
155 | _VERSION: string | 155 | _VERSION: string |
156 | end | 156 | end |
157 | 157 | ||
158 | return socket \ No newline at end of file | 158 | return socket |
diff --git a/types/ssl/https.d.tl b/types/ssl/https.d.tl index 94c38df6..79af9eb2 100644 --- a/types/ssl/https.d.tl +++ b/types/ssl/https.d.tl | |||
@@ -3,9 +3,9 @@ local SSLCertificate = ssl.SSLCertificate | |||
3 | local SSLConnection = ssl.SSLConnection | 3 | local SSLConnection = ssl.SSLConnection |
4 | 4 | ||
5 | local ltn12 = require("ltn12") | 5 | local ltn12 = require("ltn12") |
6 | local Pump = ltn12.Pump | 6 | local type Pump = ltn12.Pump |
7 | local Sink = ltn12.Sink | 7 | local type Sink = ltn12.Sink |
8 | local Source = ltn12.Source | 8 | local type Source = ltn12.Source |
9 | 9 | ||
10 | local record https | 10 | local record https |
11 | record HTTPSRequest | 11 | record HTTPSRequest |
@@ -47,4 +47,4 @@ local record https | |||
47 | tcp: function(): function(): SSLConnection | 47 | tcp: function(): function(): SSLConnection |
48 | end | 48 | end |
49 | 49 | ||
50 | return https \ No newline at end of file | 50 | return https |