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; }