From 8fe8725558edfeb94e8f6c7b387dc1eef800bee1 Mon Sep 17 00:00:00 2001 From: Rishi556 Date: Sun, 11 Aug 2024 03:57:46 -0500 Subject: [PATCH] Fix ReactRouterPromptProps Type (#144) Co-authored-by: Shyam Gupta <38554977+sshyam-gupta@users.noreply.github.com> --- src/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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