repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
docs(ui): refine ui/web/README.md wording
[e-mobility-charging-stations-simulator.git]
/
src
/
types
/
JsonType.ts
diff --git
a/src/types/JsonType.ts
b/src/types/JsonType.ts
index 4e4aedc01a869365574cb470f04b3f30318c4ffc..17db232c50cb7c55ec21d80cb0aacd1137010415 100644
(file)
--- a/
src/types/JsonType.ts
+++ b/
src/types/JsonType.ts
@@
-1,7
+1,7
@@
-type Json
Array = Array<JsonValue>;
+type Json
Primitive = string | number | boolean | Date | null
-export type JsonValue = string | number | boolean | Date | JsonType | JsonArray;
+export type JsonObject = {
+ [key in string]?: JsonType
+}
-export type JsonType = {
- [key in string]: JsonValue;
-};
+export type JsonType = JsonPrimitive | JsonType[] | JsonObject