From 094889611486ef8717ae9d6850a1ccb1e6ca6027 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 5 May 2022 23:15:33 +0200 Subject: [PATCH] Refine JsonType definition MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/types/JsonType.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; +}; -- 2.34.1