Skip to content

Commit

Permalink
fix(Menu): fix typings for Menu.Item (Semantic-Org#1235)
Browse files Browse the repository at this point in the history
* Fix typings for Menu.Item onClink Handler

* Fix spacing and make data non-optional
  • Loading branch information
shanehyde authored and harel committed Feb 18, 2017
1 parent 5d24ba6 commit 813a0e7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/collections/Menu/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,13 @@ interface MenuItemProps extends ReactMouseEvents<HTMLElement> {
/** Internal name of the MenuItem. */
name?: string;

/**
* Called after user's click.
* @param {SyntheticEvent} event - React's original SyntheticEvent.
* @param {object} data - All props.
*/
onClick?: (event: React.MouseEvent<HTMLElement>, data: MenuItemProps) => void;

/** A menu item can take right position. */
position?: 'right';
}
Expand Down

0 comments on commit 813a0e7

Please sign in to comment.