Skip to content

Commit b5200f6

Browse files
Add for component
1 parent df31a02 commit b5200f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

types/react/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ declare namespace React {
422422
// always pass children as variadic arguments to `createElement`.
423423
// In the future, if we can define its call signature conditionally
424424
// on the existence of `children` in `P`, then we should remove this.
425-
readonly props: Readonly<{ children?: ReactNode }> & Readonly<P>;
425+
readonly props: Readonly<PropsWithChildren<P>>;
426426
state: Readonly<S>;
427427
/**
428428
* @deprecated

0 commit comments

Comments
 (0)