Skip to content

Commit

Permalink
fix(Button): onClick type (ant-design#6588)
Browse files Browse the repository at this point in the history
  • Loading branch information
guoyunhe authored Apr 8, 2024
1 parent cf550e4 commit 84bad16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/button/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export type ButtonProps = {
disabled?: boolean
onClick?: (
event: React.MouseEvent<HTMLButtonElement, MouseEvent>
) => void | Promise<void> | unknown
) => void | Promise<void>
type?: 'submit' | 'reset' | 'button'
shape?: 'default' | 'rounded' | 'rectangular'
children?: ReactNode
Expand Down
2 changes: 1 addition & 1 deletion src/components/result-page/result-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type ResultPageDetails = ResultPageDetail[]

type OnClick = (
event: React.MouseEvent<HTMLButtonElement, MouseEvent>
) => void | Promise<void> | unknown
) => void | Promise<void>

export type ResultPageProps = {
status?: 'success' | 'error' | 'info' | 'waiting' | 'warning'
Expand Down

0 comments on commit 84bad16

Please sign in to comment.