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:
f4b3f35
)
refactor(ui): cleanup type definitions
author
Jérôme Benoit
<jerome.benoit@sap.com>
Thu, 7 Mar 2024 16:27:09 +0000
(17:27 +0100)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Thu, 7 Mar 2024 16:27:09 +0000
(17:27 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
ui/web/src/types/JsonType.ts
patch
|
blob
|
blame
|
history
diff --git
a/ui/web/src/types/JsonType.ts
b/ui/web/src/types/JsonType.ts
index 3a2765f6120552337b53fd1499d9b2a2b35214b4..8f597383a4bba8d98e727288dd987a579c1c0328 100644
(file)
--- a/
ui/web/src/types/JsonType.ts
+++ b/
ui/web/src/types/JsonType.ts
@@
-1,3
+1,3
@@
-export type JsonType = JsonPrimitive | JsonType[] | JsonObject
+type JsonPrimitive = string | number | boolean | Date | null
export type JsonObject = { [key in string]?: JsonType }
-export type Json
Primitive = string | number | boolean | Date | null
+export type Json
Type = JsonPrimitive | JsonType[] | JsonObject