Diff

teal-src/util/json.d.tl @ 11460:a8b4e04bc044

util.jsonschema: Rename types for improved readability
author Kim Alvefur <zash@zash.se>
date Thu, 18 Mar 2021 23:57:03 +0100
parent 11432:113f3912c7cb
line wrap: on
line diff
--- a/teal-src/util/json.d.tl	Thu Mar 18 23:16:41 2021 +0100
+++ b/teal-src/util/json.d.tl	Thu Mar 18 23:57:03 2021 +0100
@@ -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