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
Apply dependencies update
[e-mobility-charging-stations-simulator.git]
/
src
/
types
/
JsonType.ts
diff --git
a/src/types/JsonType.ts
b/src/types/JsonType.ts
index 79670c9a5c894e4a63643a93d149cd0b625c1239..5b6c9f6fc4184e019288b02caa3366d3e8d8160b 100644
(file)
--- a/
src/types/JsonType.ts
+++ b/
src/types/JsonType.ts
@@
-1,8
+1,7
@@
-type Json
Array = Array<JsonValue>
;
+type Json
Primitive = string | number | boolean | Date | null
;
-type JsonValue = string | number | boolean | Date | JsonType | JsonArray;
-
-export interface JsonType {
- [key: string]: JsonValue;
-}
+export type JsonObject = {
+ [key in string]: JsonType;
+};
+export type JsonType = JsonPrimitive | JsonType[] | JsonObject;