Skip to content

Commit f5cc8bc

Browse files
chore: fix JsonElement typing (#36)
1 parent 4193ef6 commit f5cc8bc

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/render-to-json.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ export type JsonNode = JsonElement | string;
99
*/
1010
export type JsonElement = {
1111
type: string;
12-
props: object;
13-
children: Array<JsonNode> | null;
12+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
13+
props: Record<string, any>;
14+
children: JsonNode[] | null;
1415
$$typeof: symbol;
1516
};
1617

0 commit comments

Comments
 (0)