Browse Source

fix: export individual menu type declarations (#36681)

pull/36926/merge
Dalton Craven 2 years ago
committed by GitHub
parent
commit
4758d561c5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      components/menu/hooks/useItems.tsx

8
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<RcSubMenuType, 'children'> {
export interface SubMenuType extends Omit<RcSubMenuType, 'children'> {
icon?: React.ReactNode;
theme?: 'dark' | 'light';
children: ItemType[];
}
interface MenuItemGroupType extends Omit<RcMenuItemGroupType, 'children'> {
export interface MenuItemGroupType extends Omit<RcMenuItemGroupType, 'children'> {
children?: ItemType[];
key?: React.Key;
}
interface MenuDividerType extends RcMenuDividerType {
export interface MenuDividerType extends RcMenuDividerType {
dashed?: boolean;
key?: React.Key;
}

Loading…
Cancel
Save