Skip to content

Commit

Permalink
chore: export MenuRef type (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
MadCcc authored Mar 27, 2022
1 parent a4613ab commit f92d764
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import SubMenu, { SubMenuProps } from './SubMenu';
import MenuItemGroup, { MenuItemGroupProps } from './MenuItemGroup';
import { useFullPath as useOriginFullPath } from './context/PathContext';
import Divider from './Divider';
import { MenuRef } from './interface';

/** @private Only used for antd internal. Do not use in your production. */
const useFullPath = useOriginFullPath;
Expand All @@ -20,6 +21,7 @@ export {
MenuItemProps,
MenuItemGroupProps,
useFullPath,
MenuRef,
};

type MenuType = typeof Menu & {
Expand Down

0 comments on commit f92d764

Please sign in to comment.