Skip to content

Commit ca9b383

Browse files
authored
Add showMenu/hideMenu exports to typedefs
1 parent 140d037 commit ca9b383

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ declare module "react-contextmenu" {
4343
export const MenuItem: React.ComponentClass<MenuItemProps>;
4444
export const SubMenu: React.ComponentClass<SubMenuProps>;
4545
export function connectMenu(menuId: string): (menu: any) => any;
46+
export function showMenu(opts?: any, target?: HTMLElement): void;
47+
export function hideMenu(opts?: any, target?: HTMLElement): void;
4648
}
4749

4850
export = ReactContextmenu;

0 commit comments

Comments
 (0)