diff --git a/src/index.tsx b/src/index.tsx index 46f7637..7e7435f 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -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 beforeConfirm?: () => Promise