Skip to content

Commit 23cd52a

Browse files
committed
feat: make navigateBack's paramater is optional
1 parent 482ff34 commit 23cd52a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/router/hooks/useRouter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const useRouter = () => {
3939
return navigate({ navigator, type: 'switchTab', ...options })
4040
},
4141

42-
navigateBack: (options: NavigateBackParams) => {
42+
navigateBack: (options?: NavigateBackParams) => {
4343
return navigate({ navigator, type: 'navigateBack', ...options })
4444
}
4545
}

0 commit comments

Comments
 (0)