X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FJsonType.ts;h=5b6c9f6fc4184e019288b02caa3366d3e8d8160b;hb=5af9aa8a875b3dbd4b4d394ecac022d046fa725c;hp=4e4aedc01a869365574cb470f04b3f30318c4ffc;hpb=094889611486ef8717ae9d6850a1ccb1e6ca6027;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/JsonType.ts b/src/types/JsonType.ts index 4e4aedc0..5b6c9f6f 100644 --- a/src/types/JsonType.ts +++ b/src/types/JsonType.ts @@ -1,7 +1,7 @@ -type JsonArray = Array; +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;