From: Jérôme Benoit Date: Thu, 5 May 2022 21:15:33 +0000 (+0200) Subject: Refine JsonType definition X-Git-Tag: v1.1.59~11 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=094889611486ef8717ae9d6850a1ccb1e6ca6027;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 8908b781..4e4aedc0 100644 --- a/src/types/JsonType.ts +++ b/src/types/JsonType.ts @@ -2,6 +2,6 @@ type JsonArray = Array; export type JsonValue = string | number | boolean | Date | JsonType | JsonArray; -export interface JsonType { - [key: string]: JsonValue; -} +export type JsonType = { + [key in string]: JsonValue; +};