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
Bump vm2 from 3.9.10 to 3.9.11 (#192)
[e-mobility-charging-stations-simulator.git]
/
src
/
types
/
JsonType.ts
diff --git
a/src/types/JsonType.ts
b/src/types/JsonType.ts
index 8ed02231f04d94fc942e2fdb8c30f9fc443be19a..256f0f42f7c76b7fccb1e16b2cb70921391c3534 100644
(file)
--- a/
src/types/JsonType.ts
+++ b/
src/types/JsonType.ts
@@
-1,7
+1,7
@@
-export interface JsonType {
- [key: string]: JsonValue;
-}
+type JsonPrimitive = string | number | boolean | Date | null;
-type JsonArray = Array<JsonValue>;
+export type JsonObject = {
+ [key in string]?: JsonType;
+};
-
type JsonValue = string | number | boolean | Date | JsonType | JsonArray
;
+
export type JsonType = JsonPrimitive | JsonType[] | JsonObject
;