From 711b34c0cb9dc3ecd00f7039993d43a9681544b7 Mon Sep 17 00:00:00 2001 From: FractalU Date: Mon, 28 Oct 2024 11:17:51 +0100 Subject: [PATCH] fix: io.input and io.output type definitions --- tl.lua | 4 ++-- tl.tl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tl.lua b/tl.lua index d38bda69..5b5a5957 100644 --- a/tl.lua +++ b/tl.lua @@ -136,7 +136,7 @@ do end close: function(? FILE) - input: function(? FILE): FILE + input: function(? FILE | string): FILE flush: function() lines: function(? string): (function(): (string)) @@ -146,7 +146,7 @@ do lines: function(? string, (number | string)...): (function(): (string...)) open: function(string, ? OpenMode): FILE, string, integer - output: function(? FILE): FILE + output: function(? FILE | string): FILE popen: function(string, ? OpenMode): FILE, string read: function(): string diff --git a/tl.tl b/tl.tl index 70c521ea..ab7dae2e 100644 --- a/tl.tl +++ b/tl.tl @@ -136,7 +136,7 @@ do end close: function(? FILE) - input: function(? FILE): FILE + input: function(? FILE | string): FILE flush: function() lines: function(? string): (function(): (string)) @@ -146,7 +146,7 @@ do lines: function(? string, (number | string)...): (function(): (string...)) open: function(string, ? OpenMode): FILE, string, integer - output: function(? FILE): FILE + output: function(? FILE | string): FILE popen: function(string, ? OpenMode): FILE, string read: function(): string