Skip to content

Commit 8fe8725

Browse files
Fix ReactRouterPromptProps Type (#144)
Co-authored-by: Shyam Gupta <38554977+sshyam-gupta@users.noreply.github.com>
1 parent 5af94eb commit 8fe8725

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ type ReactRouterPromptProps = {
88
when: boolean | BlockerFunction
99
children: (data: {
1010
isActive: boolean
11-
onCancel(): void
12-
onConfirm(): void
11+
onCancel: () => void
12+
onConfirm: () => void
1313
}) => React.ReactNode
1414
beforeCancel?: () => Promise<unknown>
1515
beforeConfirm?: () => Promise<unknown>

0 commit comments

Comments
 (0)