mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
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:
Vendored
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user