File tree 4 files changed +19
-5
lines changed
4 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 1
1
[build .environment ]
2
2
CHROMEDRIVER_SKIP_DOWNLOAD = " true"
3
+ NODE_VERSION = " 18"
3
4
4
5
[build ]
5
6
command = " pnpm run docs:build"
Original file line number Diff line number Diff line change @@ -100,6 +100,8 @@ function that removes the registered hook.
100
100
101
101
` fn `
102
102
103
+ a function that removes the registered hook
104
+
103
105
▸ (): ` void `
104
106
105
107
Add a navigation hook that is executed after every navigation. Returns a
@@ -109,6 +111,8 @@ function that removes the registered hook.
109
111
110
112
` void `
111
113
114
+ a function that removes the registered hook
115
+
112
116
** ` Example ` **
113
117
114
118
``` js
@@ -191,6 +195,8 @@ registered guard.
191
195
192
196
` fn `
193
197
198
+ a function that removes the registered guard
199
+
194
200
▸ (): ` void `
195
201
196
202
Add a navigation guard that executes before navigation is about to be
@@ -202,6 +208,8 @@ registered guard.
202
208
203
209
` void `
204
210
211
+ a function that removes the registered guard
212
+
205
213
** ` Example ` **
206
214
207
215
``` js
Original file line number Diff line number Diff line change @@ -144,6 +144,9 @@ export function createRouterError<E extends RouterError>(
144
144
/**
145
145
* Check if an object is a {@link NavigationFailure}.
146
146
*
147
+ * @param error - possible {@link NavigationFailure}
148
+ * @param type - optional types to check for
149
+ *
147
150
* @example
148
151
* ```js
149
152
* import { isNavigationFailure, NavigationFailureType } from 'vue-router'
@@ -163,8 +166,6 @@ export function createRouterError<E extends RouterError>(
163
166
* }
164
167
* })
165
168
* ```
166
- * @param error - possible {@link NavigationFailure}
167
- * @param type - optional types to check for
168
169
*/
169
170
export function isNavigationFailure (
170
171
error : any ,
Original file line number Diff line number Diff line change @@ -287,20 +287,26 @@ export interface Router {
287
287
* navigation guards have been successful. Returns a function that removes the
288
288
* registered guard.
289
289
*
290
+ * @param guard - navigation guard to add
291
+ * @returns a function that removes the registered guard
292
+ *
290
293
* @example
291
294
* ```js
292
295
* router.beforeResolve(to => {
293
296
* if (to.meta.requiresAuth && !isAuthenticated) return false
294
297
* })
295
298
* ```
296
299
*
297
- * @param guard - navigation guard to add
298
300
*/
299
301
beforeResolve ( guard : NavigationGuardWithThis < undefined > ) : ( ) => void
302
+
300
303
/**
301
304
* Add a navigation hook that is executed after every navigation. Returns a
302
305
* function that removes the registered hook.
303
306
*
307
+ * @param guard - navigation hook to add
308
+ * @returns a function that removes the registered hook
309
+ *
304
310
* @example
305
311
* ```js
306
312
* router.afterEach((to, from, failure) => {
@@ -309,8 +315,6 @@ export interface Router {
309
315
* }
310
316
* })
311
317
* ```
312
- *
313
- * @param guard - navigation hook to add
314
318
*/
315
319
afterEach ( guard : NavigationHookAfter ) : ( ) => void
316
320
You can’t perform that action at this time.
0 commit comments