From 501457d5760c0fff44ff849c4fd39b22d01b0086 Mon Sep 17 00:00:00 2001 From: Khurram Jalil <114917595+KhurramJalil@users.noreply.github.com> Date: Wed, 27 Sep 2023 11:04:43 +0500 Subject: [PATCH] Update utils.ts Fixes #1689 --- packages/commons/src/types/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/commons/src/types/utils.ts b/packages/commons/src/types/utils.ts index 64a322020d..7da5fd17ab 100644 --- a/packages/commons/src/types/utils.ts +++ b/packages/commons/src/types/utils.ts @@ -53,7 +53,7 @@ export { isRecord, isString, isTruthy, isNullOrUndefined }; type JSONPrimitive = string | number | boolean | null | undefined; type JSONValue = JSONPrimitive | JSONObject | JSONArray; -type JSONObject = { [key: string]: JSONValue }; +type JSONObject = { [key: number | string]: JSONValue }; type JSONArray = Array; export type { JSONPrimitive, JSONValue, JSONObject, JSONArray };