Skip to content

Commit 966100c

Browse files
authored
fix: Fix type definition for addNavigationListener (#680)
1 parent 86c5cdb commit 966100c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

types/index.d.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,10 @@ declare module 'found' {
224224
* This method takes a navigation listener function and returns a function
225225
* to remove the navigation listener.
226226
*/
227-
addNavigationListener: (listener: NavigationListener) => () => void;
227+
addNavigationListener: (
228+
listener: NavigationListener,
229+
options?: { beforeUnload?: boolean },
230+
) => () => void;
228231
}
229232

230233
/**

0 commit comments

Comments
 (0)