From 122d9243eeb1a125dab68b6ab681f544e65dfbbb Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 8 Feb 2022 13:20:32 +0100 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, 4 insertions(+), 2 deletions(-) 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; -- 2.34.1