diff --git a/components/menu/hooks/useItems.tsx b/components/menu/hooks/useItems.tsx index 17c2695811..ed3b29d641 100644 --- a/components/menu/hooks/useItems.tsx +++ b/components/menu/hooks/useItems.tsx @@ -10,24 +10,24 @@ import MenuDivider from '../MenuDivider'; import MenuItem from '../MenuItem'; import SubMenu from '../SubMenu'; -interface MenuItemType extends RcMenuItemType { +export interface MenuItemType extends RcMenuItemType { danger?: boolean; icon?: React.ReactNode; title?: string; } -interface SubMenuType extends Omit { +export interface SubMenuType extends Omit { icon?: React.ReactNode; theme?: 'dark' | 'light'; children: ItemType[]; } -interface MenuItemGroupType extends Omit { +export interface MenuItemGroupType extends Omit { children?: ItemType[]; key?: React.Key; } -interface MenuDividerType extends RcMenuDividerType { +export interface MenuDividerType extends RcMenuDividerType { dashed?: boolean; key?: React.Key; }