Skip to content

Commit 5118824

Browse files
committed
types(scroll): allow returning a falsy value to prevent scroll
Closes #2921
1 parent 039bd8f commit 5118824

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: types/router.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export interface RouterOptions {
7474
to: Route,
7575
from: Route,
7676
savedPosition: Position | void
77-
) => PositionResult | Promise<PositionResult>
77+
) => PositionResult | Promise<PositionResult> | undefined | null
7878
}
7979

8080
type RoutePropsFunction = (route: Route) => Object

0 commit comments

Comments
 (0)