We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5af94eb commit 8fe8725Copy full SHA for 8fe8725
src/index.tsx
@@ -8,8 +8,8 @@ type ReactRouterPromptProps = {
8
when: boolean | BlockerFunction
9
children: (data: {
10
isActive: boolean
11
- onCancel(): void
12
- onConfirm(): void
+ onCancel: () => void
+ onConfirm: () => void
13
}) => React.ReactNode
14
beforeCancel?: () => Promise<unknown>
15
beforeConfirm?: () => Promise<unknown>
0 commit comments