From ccfeb43e29a5632f0165c69d1adaa9a16479d512 Mon Sep 17 00:00:00 2001 From: V1K1NGbg Date: Thu, 22 Aug 2024 17:49:09 -0300 Subject: Teal: add type definition module luarocks.vendor.dkjson --- src/luarocks/vendor/dkjson.d.tl | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/luarocks/vendor/dkjson.d.tl (limited to 'src') diff --git a/src/luarocks/vendor/dkjson.d.tl b/src/luarocks/vendor/dkjson.d.tl new file mode 100644 index 00000000..a7c76389 --- /dev/null +++ b/src/luarocks/vendor/dkjson.d.tl @@ -0,0 +1,33 @@ + +--[[ +- local type json = {string:json} +]] + +local record dkjson + record JsonState + indent: boolean + keyorder: {string} + level: number + buffer: {string} + bufferlen: number + tables: {table:boolean} + exception: function(string, string, string, string): boolean|string, string + end + encode: function({string:any}, ?JsonState): string + + decode: function(string, ?number, ?any, ?table): {string:any} + + null: table + + version: string + + quotestring: function(string): string + + addnewline: function(JsonState) + + encodeexception: function(string, any, JsonState, string): string + + use_lpeg: function(): dkjson +end + +return dkjson -- cgit v1.2.3-55-g6feb