From: Jérôme Benoit Date: Tue, 8 Feb 2022 12:20:32 +0000 (+0100) Subject: Refine JsonType definition X-Git-Tag: v1.1.46~3 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=122d9243eeb1a125dab68b6ab681f544e65dfbbb;p=e-mobility-charging-stations-simulator.git Refine JsonType definition Signed-off-by: Jérôme Benoit --- diff --git a/src/types/JsonType.ts b/src/types/JsonType.ts index 2bd219f4..8ed02231 100644 --- 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; +type JsonArray = Array; + +type JsonValue = string | number | boolean | Date | JsonType | JsonArray;