From 13b5f660baa232a454a2496b43ed51299aea4a5b Mon Sep 17 00:00:00 2001 From: Yui Date: Thu, 4 May 2017 14:04:25 -0700 Subject: [PATCH] Include ElementChildrenAttribute This is a new feature in 2.3 as TypeScript will be able to check JSX.children --- types/react/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/react/index.d.ts b/types/react/index.d.ts index 741dae1012..f2df9c3f69 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -2725,6 +2725,7 @@ declare global { render(): JSX.Element | null; } interface ElementAttributesProperty { props: {}; } + interface ElementChildrenAttribute { children: {}; } interface IntrinsicAttributes extends React.Attributes { } interface IntrinsicClassAttributes extends React.ClassAttributes { }