We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa939ec commit 1a92dc5Copy full SHA for 1a92dc5
flow/declarations.js
@@ -35,11 +35,7 @@ declare type RouteConfig = {
35
redirect?: RedirectOption;
36
alias?: string | Array<string>;
37
children?: Array<RouteConfig>;
38
- beforeEnter?: (
39
- route: Route,
40
- redirect: (location: RawLocation) => void,
41
- next: () => void
42
- ) => any;
+ beforeEnter?: NavigationGuard;
43
meta?: any;
44
}
45
@@ -51,11 +47,7 @@ declare type RouteRecord = {
51
47
parent: ?RouteRecord;
52
48
redirect: ?RedirectOption;
53
49
matchAs: ?string;
54
- beforeEnter: ?(
55
56
57
58
50
+ beforeEnter: ?NavigationGuard;
59
meta: any;
60
61
0 commit comments