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.
This commit is contained in:
Bruce Mitchener
2016-03-19 12:53:02 +07:00
parent 14037e8c50
commit 8f4a4f8e60
+2 -2
View File
@@ -738,7 +738,7 @@ declare namespace Antd {
*
* @type {(MenuItem | MenuSubMenu)}
*/
children?: MenuItem | MenuSubMenu
children?: JSX.Element[]
}
export class MenuSubMenu extends React.Component<MenuSubMenuProps, {}> {
render(): JSX.Element
@@ -756,7 +756,7 @@ declare namespace Antd {
*
* @type {MenuItem}
*/
children?: MenuItem
children?: JSX.Element[]
}
export class MenuItemGroup extends React.Component<MenuItemGroupProps, {}> {
render(): JSX.Element