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:
aba9519
)
Refine JsonType definition
author
Jérôme Benoit
<jerome.benoit@sap.com>
Thu, 5 May 2022 21:15:33 +0000
(23:15 +0200)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Thu, 5 May 2022 21:15:33 +0000
(23:15 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/types/JsonType.ts
patch
|
blob
|
blame
|
history
diff --git
a/src/types/JsonType.ts
b/src/types/JsonType.ts
index 8908b7815a9f64e53433dc6d67a18cb846732015..4e4aedc01a869365574cb470f04b3f30318c4ffc 100644
(file)
--- a/
src/types/JsonType.ts
+++ b/
src/types/JsonType.ts
@@
-2,6
+2,6
@@
type JsonArray = Array<JsonValue>;
export type JsonValue = string | number | boolean | Date | JsonType | JsonArray;
-export
interface JsonType
{
- [key
:
string]: JsonValue;
-}
+export
type JsonType =
{
+ [key
in
string]: JsonValue;
+}
;