Skip to content

Commit

Permalink
fix(typescript): add onPress to toggle button props parameter (#1548)
Browse files Browse the repository at this point in the history
  • Loading branch information
silviuaavram authored Sep 29, 2023
1 parent 0be1752 commit fd6ab68
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ export interface GetLabelPropsReturnValue {
export interface GetToggleButtonPropsOptions
extends React.HTMLProps<HTMLButtonElement> {
disabled?: boolean
onPress?: (event: React.BaseSyntheticEvent) => void
}

interface GetToggleButtonPropsReturnValue {
Expand Down Expand Up @@ -398,7 +399,9 @@ export interface UseSelectGetMenuReturnValue extends GetMenuPropsReturnValue {

export interface UseSelectGetToggleButtonPropsOptions
extends GetPropsWithRefKey,
React.HTMLProps<HTMLElement> {}
React.HTMLProps<HTMLElement> {
onPress?: (event: React.BaseSyntheticEvent) => void
}

export interface UseSelectGetToggleButtonReturnValue
extends Pick<
Expand Down

0 comments on commit fd6ab68

Please sign in to comment.