From c1706af956ae403b229f7f37a2ff575ada0074e6 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 18 Mar 2021 23:57:03 +0100 Subject: util.jsonschema: Rename types for improved readability --- teal-src/util/json.d.tl | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'teal-src/util/json.d.tl') 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 -- cgit v1.2.3