From 7d3447f8ac7b9774fd6a107e71ebc3cbdc8d5dd0 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Sat, 15 Oct 2016 11:16:45 +0200 Subject: [PATCH] Update flow type for beforeEnter --- flow/declarations.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/flow/declarations.js b/flow/declarations.js index 96c54ffe7..85be4019e 100644 --- a/flow/declarations.js +++ b/flow/declarations.js @@ -35,11 +35,7 @@ declare type RouteConfig = { redirect?: RedirectOption; alias?: string | Array; children?: Array; - beforeEnter?: ( - route: Route, - redirect: (location: RawLocation) => void, - next: () => void - ) => any; + beforeEnter?: NavigationGuard; meta?: any; } @@ -51,11 +47,7 @@ declare type RouteRecord = { parent: ?RouteRecord; redirect: ?RedirectOption; matchAs: ?string; - beforeEnter: ?( - route: Route, - redirect: (location: RawLocation) => void, - next: () => void - ) => any; + beforeEnter: ?NavigationGuard; meta: any; }