From 5118824ece97d76654f535dfb498cd0e99787626 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Mon, 9 Sep 2019 10:18:17 +0200 Subject: [PATCH] types(scroll): allow returning a falsy value to prevent scroll Closes #2921 --- types/router.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/router.d.ts b/types/router.d.ts index 137261ee3..1d6135a6b 100644 --- a/types/router.d.ts +++ b/types/router.d.ts @@ -74,7 +74,7 @@ export interface RouterOptions { to: Route, from: Route, savedPosition: Position | void - ) => PositionResult | Promise + ) => PositionResult | Promise | undefined | null } type RoutePropsFunction = (route: Route) => Object