Skip to content

Commit 155f4fc

Browse files
authored
Merge pull request #264 from zmayor/master
enhanced submenu typescript definition
2 parents d2ec76e + 85bd5a4 commit 155f4fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ declare module "react-contextmenu" {
3131
}
3232

3333
interface SubMenuProps {
34-
title: React.ReactElement<any>,
34+
title: React.ReactElement<any> | React.ReactText,
3535
className?: string,
3636
disabled?: boolean,
3737
hoverDelay?: number,

0 commit comments

Comments
 (0)