From: Jérôme Benoit Date: Thu, 7 Mar 2024 16:27:09 +0000 (+0100) Subject: refactor(ui): cleanup type definitions X-Git-Tag: v1.3.0~31 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=e99a8ac94ed48bc1dd74bca598b80eb648760e00;p=e-mobility-charging-stations-simulator.git refactor(ui): cleanup type definitions Signed-off-by: Jérôme Benoit --- diff --git a/ui/web/src/types/JsonType.ts b/ui/web/src/types/JsonType.ts index 3a2765f6..8f597383 100644 --- 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 JsonPrimitive = string | number | boolean | Date | null +export type JsonType = JsonPrimitive | JsonType[] | JsonObject