From: Jérôme Benoit Date: Wed, 15 Apr 2026 23:43:43 +0000 (+0200) Subject: refactor(web): eliminate type barrel — direct imports from ui-common and source modules X-Git-Tag: cli@v4.5.0~76 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=dbf573181510a19edda0bf76aee6e8553a06c60e;p=e-mobility-charging-stations-simulator.git refactor(web): eliminate type barrel — direct imports from ui-common and source modules --- diff --git a/ui/common/src/types/JsonType.ts b/ui/common/src/types/JsonType.ts index 927f3c4d..ace385f0 100644 --- a/ui/common/src/types/JsonType.ts +++ b/ui/common/src/types/JsonType.ts @@ -1,5 +1,7 @@ -export type JsonObject = { [K in string]?: JsonType } +export type JsonObject = { + [K in string]?: (JsonObject | JsonPrimitive)[] | JsonObject | JsonPrimitive +} export type JsonPrimitive = boolean | null | number | string -export type JsonType = JsonObject | JsonPrimitive | JsonType[] +export type JsonType = (JsonObject | JsonPrimitive)[] | JsonObject | JsonPrimitive diff --git a/ui/web/src/components/actions/AddChargingStations.vue b/ui/web/src/components/actions/AddChargingStations.vue index 3597e3c4..816fe2e9 100644 --- a/ui/web/src/components/actions/AddChargingStations.vue +++ b/ui/web/src/components/actions/AddChargingStations.vue @@ -113,9 +113,9 @@