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 };