aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/vendor/dkjson.d.tl33
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
6local 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
31end
32
33return dkjson