From eae4e554d00000025c7d03e8a17bdb7245c7beff Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 21 Oct 2024 14:50:52 -0300 Subject: types: use 'local type' on type aliases --- types/socket.d.tl | 6 +++--- types/ssl/https.d.tl | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'types') 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 @@ local ltn12 = require("ltn12") -local Sink = ltn12.Sink -local Source = ltn12.Source +local type Sink = ltn12.Sink +local type Source = ltn12.Source local record socket record TCP @@ -155,4 +155,4 @@ local record socket _VERSION: string end -return socket \ No newline at end of file +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 local SSLConnection = ssl.SSLConnection local ltn12 = require("ltn12") -local Pump = ltn12.Pump -local Sink = ltn12.Sink -local Source = ltn12.Source +local type Pump = ltn12.Pump +local type Sink = ltn12.Sink +local type Source = ltn12.Source local record https record HTTPSRequest @@ -47,4 +47,4 @@ local record https tcp: function(): function(): SSLConnection end -return https \ No newline at end of file +return https -- cgit v1.2.3-55-g6feb