Skip to content

Commit 0beabc7

Browse files
committed
Update type for JSONObject to be like Record
1 parent dfa47f6 commit 0beabc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/types/json.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const jsonValueSchema: z.ZodType<JSONValue> = z.lazy(() =>
2121
export const jsonObjectSchema: z.ZodType<JSONObject> = z.lazy(() =>
2222
z.record(z.string(), jsonValueSchema),
2323
)
24-
export type JSONObject = { [key: string]: JSONValue }
24+
export type JSONObject = { [key in string]: JSONValue }
2525

2626
export const jsonArraySchema: z.ZodType<JSONArray> = z.lazy(() =>
2727
z.array(jsonValueSchema),

0 commit comments

Comments
 (0)