aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2024-10-21 14:50:52 -0300
committerHisham Muhammad <hisham@gobolinux.org>2024-10-21 14:50:52 -0300
commiteae4e554d00000025c7d03e8a17bdb7245c7beff (patch)
tree04b7db1d2dffd9c91570f96110e240b92c30dda2
parentd1e854908ae9b8f20fa7209bcf8daed74e08fea0 (diff)
downloadluarocks-eae4e554d00000025c7d03e8a17bdb7245c7beff.tar.gz
luarocks-eae4e554d00000025c7d03e8a17bdb7245c7beff.tar.bz2
luarocks-eae4e554d00000025c7d03e8a17bdb7245c7beff.zip
types: use 'local type' on type aliases
-rw-r--r--types/socket.d.tl6
-rw-r--r--types/ssl/https.d.tl8
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 @@
1local ltn12 = require("ltn12") 1local ltn12 = require("ltn12")
2local Sink = ltn12.Sink 2local type Sink = ltn12.Sink
3local Source = ltn12.Source 3local type Source = ltn12.Source
4 4
5local record socket 5local record socket
6 record TCP 6 record TCP
@@ -155,4 +155,4 @@ local record socket
155 _VERSION: string 155 _VERSION: string
156end 156end
157 157
158return socket \ No newline at end of file 158return 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
3local SSLConnection = ssl.SSLConnection 3local SSLConnection = ssl.SSLConnection
4 4
5local ltn12 = require("ltn12") 5local ltn12 = require("ltn12")
6local Pump = ltn12.Pump 6local type Pump = ltn12.Pump
7local Sink = ltn12.Sink 7local type Sink = ltn12.Sink
8local Source = ltn12.Source 8local type Source = ltn12.Source
9 9
10local record https 10local 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
48end 48end
49 49
50return https \ No newline at end of file 50return https