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
build(deps-dev): apply updates
[e-mobility-charging-stations-simulator.git]
/
src
/
types
/
JsonType.ts
diff --git
a/src/types/JsonType.ts
b/src/types/JsonType.ts
index 2bd219f40ab9f982961ac5774596f5398ae0d353..256f0f42f7c76b7fccb1e16b2cb70921391c3534 100644
(file)
--- a/
src/types/JsonType.ts
+++ b/
src/types/JsonType.ts
@@
-1,5
+1,7
@@
-export interface JsonType {
- [x: string]: string | number | boolean | Date | JsonType | JsonArray;
-}
+type JsonPrimitive = string | number | boolean | Date | null;
-type JsonArray = Array<string | number | boolean | Date | JsonType | JsonArray>;
+export type JsonObject = {
+ [key in string]?: JsonType;
+};
+
+export type JsonType = JsonPrimitive | JsonType[] | JsonObject;