From d7b1df42d377d62eccc20fa9efc4c477c45b769c Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 9 Mar 2021 14:36:46 +0100 Subject: util: Add Teal interface definition files Enables writing code in Teal that is aware of the interfaces and function prototypes in these other utils. Could also be used to do type checks on Lua sources, but this tends to have a lot of noise. --- teal-src/util/human/units.d.tl | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 teal-src/util/human/units.d.tl (limited to 'teal-src/util/human') diff --git a/teal-src/util/human/units.d.tl b/teal-src/util/human/units.d.tl new file mode 100644 index 00000000..f6568d90 --- /dev/null +++ b/teal-src/util/human/units.d.tl @@ -0,0 +1,5 @@ +local lib = record + adjust : function (number, string) : number, string + format : function (number, string, string) : string +end +return lib -- cgit v1.2.3