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
UI Server: refine Insomnia WS requests collection
[e-mobility-charging-stations-simulator.git]
/
src
/
types
/
JsonType.ts
diff --git
a/src/types/JsonType.ts
b/src/types/JsonType.ts
index 8908b7815a9f64e53433dc6d67a18cb846732015..256f0f42f7c76b7fccb1e16b2cb70921391c3534 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 interface JsonType {
- [key: string]: JsonValue;
-}
+export type JsonType = JsonPrimitive | JsonType[] | JsonObject;