Skip to content

Commit

Permalink
types(scroll): allow returning a falsy value to prevent scroll
Browse files Browse the repository at this point in the history
Closes #2921
  • Loading branch information
posva committed Sep 9, 2019
1 parent 039bd8f commit 5118824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/router.d.ts
Expand Up @@ -74,7 +74,7 @@ export interface RouterOptions {
to: Route,
from: Route,
savedPosition: Position | void
) => PositionResult | Promise<PositionResult>
) => PositionResult | Promise<PositionResult> | undefined | null
}

type RoutePropsFunction = (route: Route) => Object
Expand Down

0 comments on commit 5118824

Please sign in to comment.