repositories
/
e-mobility-charging-stations-simulator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5328366
)
Refine JsonType definition
author
Jérôme Benoit
<jerome.benoit@sap.com>
Tue, 8 Feb 2022 12:20:32 +0000
(13:20 +0100)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Tue, 8 Feb 2022 12:20:32 +0000
(13:20 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/types/JsonType.ts
patch
|
blob
|
blame
|
history
diff --git
a/src/types/JsonType.ts
b/src/types/JsonType.ts
index 2bd219f40ab9f982961ac5774596f5398ae0d353..8ed02231f04d94fc942e2fdb8c30f9fc443be19a 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
;
+ [
key: string]: JsonValue
;
}
-type JsonArray = Array<string | number | boolean | Date | JsonType | JsonArray>;
+type JsonArray = Array<JsonValue>;
+
+type JsonValue = string | number | boolean | Date | JsonType | JsonArray;