From 8f4a4f8e60d3a57aafbf9c4837fee9320286271b Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Wed, 16 Mar 2016 21:12:16 +0700 Subject: [PATCH 1/2] 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 abd5590976..fef160d4af 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 From d254c5d772ffc20007c7e4b4f441f85c1fcc5afc Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Wed, 16 Mar 2016 21:14:26 +0700 Subject: [PATCH 2/2] antd: Add myself to authors list. bang88 requested that I add myself. --- antd/antd.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/antd/antd.d.ts b/antd/antd.d.ts index fef160d4af..8aeab7dd95 100644 --- a/antd/antd.d.ts +++ b/antd/antd.d.ts @@ -1,6 +1,6 @@ // Type definitions for Antd v0.12.10 // Project: http://ant.design -// Definitions by: bang88 +// Definitions by: bang88 , Bruce Mitchener // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped