Skip to content

Commit b270933

Browse files
authored
Merge pull request #221 from vkbansal/typedefs-patch
Add showMenu/hideMenu exports to typedefs
2 parents 140d037 + ca9b383 commit b270933

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)