Skip to content

Commit

Permalink
fix: Fix type definition for addNavigationListener (#680)
Browse files Browse the repository at this point in the history
  • Loading branch information
taion committed Apr 2, 2020
1 parent 86c5cdb commit 966100c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,10 @@ declare module 'found' {
* This method takes a navigation listener function and returns a function
* to remove the navigation listener.
*/
addNavigationListener: (listener: NavigationListener) => () => void;
addNavigationListener: (
listener: NavigationListener,
options?: { beforeUnload?: boolean },
) => () => void;
}

/**
Expand Down

0 comments on commit 966100c

Please sign in to comment.