aboutsummaryrefslogtreecommitdiffstats
path: root/teal-src/util/json.d.tl
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-03-18 23:57:03 +0100
committerKim Alvefur <zash@zash.se>2021-03-18 23:57:03 +0100
commitc1706af956ae403b229f7f37a2ff575ada0074e6 (patch)
tree8a6f328deddcec490d84601091dbad7b9ecf1f9b /teal-src/util/json.d.tl
parentd18097fb6700ede8bdb47388e51e0850d0d828f6 (diff)
downloadprosody-c1706af956ae403b229f7f37a2ff575ada0074e6.tar.gz
prosody-c1706af956ae403b229f7f37a2ff575ada0074e6.zip
util.jsonschema: Rename types for improved readability
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