Add for component

This commit is contained in:
Vincent Langlet
2019-02-25 17:46:39 +01:00
parent df31a02f00
commit b5200f6fb7

View File

@@ -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