From 8f4a4f8e60d3a57aafbf9c4837fee9320286271b Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Wed, 16 Mar 2016 21:12:16 +0700 Subject: [PATCH] antd: Correct type of children property. This fixes an error that happens with a pending pull request for the react typings to fix the type of ReactFragment in #8540. --- antd/antd.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/antd/antd.d.ts b/antd/antd.d.ts index abd559097..fef160d4a 100644 --- a/antd/antd.d.ts +++ b/antd/antd.d.ts @@ -738,7 +738,7 @@ declare namespace Antd { * * @type {(MenuItem | MenuSubMenu)} */ - children?: MenuItem | MenuSubMenu + children?: JSX.Element[] } export class MenuSubMenu extends React.Component { render(): JSX.Element @@ -756,7 +756,7 @@ declare namespace Antd { * * @type {MenuItem} */ - children?: MenuItem + children?: JSX.Element[] } export class MenuItemGroup extends React.Component { render(): JSX.Element