Properly type onMouseEnter and onMouseLeave events

This commit is contained in:
Gabe Medrash 2019-02-05 13:29:58 -08:00 committed by 偏右
parent 991b47f421
commit dfc9b24c98

View File

@ -13,8 +13,8 @@ interface MenuItemProps {
className?: string;
style?: React.CSSProperties;
onClick?: (param: ClickParam) => void;
onMouseEnter?: (event: string, e: MouseEvent) => void;
onMouseLeave?: (event: string, e: MouseEvent) => void;
onMouseEnter?: (e: { key: string; domEvent: MouseEvent }) => void;
onMouseLeave?: (e: { key: string; domEvent: MouseEvent }) => void;
}
class MenuItem extends React.Component<MenuItemProps, any> {