ATG: add support for idTag distribution algorithms
[e-mobility-charging-stations-simulator.git] / src / types / JsonType.ts
index 4e4aedc01a869365574cb470f04b3f30318c4ffc..256f0f42f7c76b7fccb1e16b2cb70921391c3534 100644 (file)
@@ -1,7 +1,7 @@
-type JsonArray = Array<JsonValue>;
+type JsonPrimitive = string | number | boolean | Date | null;
 
-export type JsonValue = string | number | boolean | Date | JsonType | JsonArray;
-
-export type JsonType = {
-  [key in string]: JsonValue;
+export type JsonObject = {
+  [key in string]?: JsonType;
 };
+
+export type JsonType = JsonPrimitive | JsonType[] | JsonObject;