Skip to content

Commit

Permalink
Fix ReactRouterPromptProps Type (#144)
Browse files Browse the repository at this point in the history
Co-authored-by: Shyam Gupta <38554977+sshyam-gupta@users.noreply.github.com>
  • Loading branch information
Rishi556 and sshyam-gupta authored Aug 11, 2024
1 parent 5af94eb commit 8fe8725
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ type ReactRouterPromptProps = {
when: boolean | BlockerFunction
children: (data: {
isActive: boolean
onCancel(): void
onConfirm(): void
onCancel: () => void
onConfirm: () => void
}) => React.ReactNode
beforeCancel?: () => Promise<unknown>
beforeConfirm?: () => Promise<unknown>
Expand Down

0 comments on commit 8fe8725

Please sign in to comment.