diff options
| author | V1K1NGbg <victor@ilchev.com> | 2024-08-22 17:49:09 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2024-10-21 13:30:51 -0300 |
| commit | ccfeb43e29a5632f0165c69d1adaa9a16479d512 (patch) | |
| tree | 94fa3355c0e77495554c30240e95bbf461a7a71e /src | |
| parent | 2b6429ead0c88dc60a1c99743e2c4d92b91fe7ca (diff) | |
| download | luarocks-ccfeb43e29a5632f0165c69d1adaa9a16479d512.tar.gz luarocks-ccfeb43e29a5632f0165c69d1adaa9a16479d512.tar.bz2 luarocks-ccfeb43e29a5632f0165c69d1adaa9a16479d512.zip | |
Teal: add type definition module luarocks.vendor.dkjson
Diffstat (limited to 'src')
| -rw-r--r-- | src/luarocks/vendor/dkjson.d.tl | 33 |
1 files changed, 33 insertions, 0 deletions
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 @@ | |||
| 1 | |||
| 2 | --[[ | ||
| 3 | - local type json = {string:json} | ||
| 4 | ]] | ||
| 5 | |||
| 6 | local record dkjson | ||
| 7 | record JsonState | ||
| 8 | indent: boolean | ||
| 9 | keyorder: {string} | ||
| 10 | level: number | ||
| 11 | buffer: {string} | ||
| 12 | bufferlen: number | ||
| 13 | tables: {table:boolean} | ||
| 14 | exception: function(string, string, string, string): boolean|string, string | ||
| 15 | end | ||
| 16 | encode: function({string:any}, ?JsonState): string | ||
| 17 | |||
| 18 | decode: function(string, ?number, ?any, ?table): {string:any} | ||
| 19 | |||
| 20 | null: table | ||
| 21 | |||
| 22 | version: string | ||
| 23 | |||
| 24 | quotestring: function(string): string | ||
| 25 | |||
| 26 | addnewline: function(JsonState) | ||
| 27 | |||
| 28 | encodeexception: function(string, any, JsonState, string): string | ||
| 29 | |||
| 30 | use_lpeg: function(): dkjson | ||
| 31 | end | ||
| 32 | |||
| 33 | return dkjson | ||
