Skip to content

Commit

Permalink
fix(Accordion): update signature of onTitleClick in typings (#2568)
Browse files Browse the repository at this point in the history
  • Loading branch information
layershifter authored and levithomason committed Feb 25, 2018
1 parent c3bde18 commit 8ccee0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/Accordion/AccordionAccordion.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ export interface AccordionAccordionProps {
* Called when a panel title is clicked.
*
* @param {SyntheticEvent} event - React's original SyntheticEvent.
* @param {number} index - The index of the clicked panel.
* @param {AccordionTitleProps} data - All item props.
*/
onTitleClick?: (event: React.MouseEvent<HTMLDivElement>, index: number | number[]) => void;
onTitleClick?: (event: React.MouseEvent<HTMLDivElement>, data: AccordionTitleProps) => void;

/** Shorthand array of props for Accordion. */
panels?: SemanticShorthandCollection<AccordionPanelProps>;
Expand Down

0 comments on commit 8ccee0f

Please sign in to comment.