Skip to content

Commit b9ef51f

Browse files
ludwigbacklundvkbansal
authored andcommitted
Add to ContextMenuTriggerProps typescript interface (#299)
Adds mouseButton and disableIfShiftIsPressed so they can be used without erroring out in Typescript projects. Is this correct? I've just started using this package.
1 parent f80d1c5 commit b9ef51f

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
@@ -19,6 +19,8 @@ declare module "react-contextmenu" {
1919
disable?: boolean,
2020
holdToDisplay?: number,
2121
renderTag?: React.ReactType,
22+
mouseButton?: number,
23+
disableIfShiftIsPressed?: boolean,
2224
}
2325

2426
interface MenuItemProps {

0 commit comments

Comments
 (0)