aboutsummaryrefslogtreecommitdiffstats
path: root/teal-src/util/json.d.tl
diff options
context:
space:
mode:
Diffstat (limited to 'teal-src/util/json.d.tl')
-rw-r--r--teal-src/util/json.d.tl13
1 files changed, 13 insertions, 0 deletions
diff --git a/teal-src/util/json.d.tl b/teal-src/util/json.d.tl
index 86a1495e..a1c25004 100644
--- a/teal-src/util/json.d.tl
+++ b/teal-src/util/json.d.tl
@@ -1,5 +1,18 @@
local record lib
encode : function (any) : string
decode : function (string) : any, string
+
+ enum json_type_name
+ "null"
+ "boolean"
+ "object"
+ "array"
+ "number"
+ "string"
+ "integer"
+ end
+
+ type null_type = (nil)
+ null : null_type
end
return lib