Skip to content

Commit

Permalink
Merge pull request #4493 from hesxenon/patch-1
Browse files Browse the repository at this point in the history
fix: support multiple children in `PropsWithChildren` from compat
  • Loading branch information
rschristian authored Sep 14, 2024
2 parents 8d0ee49 + bac87fa commit 75fa1f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compat/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ declare namespace React {
): void;

export type PropsWithChildren<P = unknown> = P & {
children?: preact.ComponentChild | undefined;
children?: preact.ComponentChildren | undefined;
};

export const Children: {
Expand Down

0 comments on commit 75fa1f3

Please sign in to comment.