From 4de5967e61fd772dfe07fc0eeb10a98d21a5cd73 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Wed, 6 Mar 2019 20:25:27 +0100 Subject: [PATCH] [types/react] Fix regression with PropsWithChildren [The Travis build is lying] (#33462) * Fix regression * Update index.d.ts * Update index.d.ts --- types/react/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react/index.d.ts b/types/react/index.d.ts index 29123092e6..dd7756d2b2 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -427,7 +427,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>; + readonly props: Readonly

& Readonly<{ children?: ReactNode }>; state: Readonly; /** * @deprecated