mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
Add for component
This commit is contained in:
2
types/react/index.d.ts
vendored
2
types/react/index.d.ts
vendored
@@ -422,7 +422,7 @@ declare namespace React {
|
||||
// always pass children as variadic arguments to `createElement`.
|
||||
// In the future, if we can define its call signature conditionally
|
||||
// on the existence of `children` in `P`, then we should remove this.
|
||||
readonly props: Readonly<{ children?: ReactNode }> & Readonly<P>;
|
||||
readonly props: Readonly<PropsWithChildren<P>>;
|
||||
state: Readonly<S>;
|
||||
/**
|
||||
* @deprecated
|
||||
|
||||
Reference in New Issue
Block a user