[build.environment]
CHROMEDRIVER_SKIP_DOWNLOAD = "true"
+NODE_VERSION = "18"
[build]
command = "pnpm run docs:build"
`fn`
+a function that removes the registered hook
+
▸ (): `void`
Add a navigation hook that is executed after every navigation. Returns a
`void`
+a function that removes the registered hook
+
**`Example`**
```js
`fn`
+a function that removes the registered guard
+
▸ (): `void`
Add a navigation guard that executes before navigation is about to be
`void`
+a function that removes the registered guard
+
**`Example`**
```js
/**
* Check if an object is a {@link NavigationFailure}.
*
+ * @param error - possible {@link NavigationFailure}
+ * @param type - optional types to check for
+ *
* @example
* ```js
* import { isNavigationFailure, NavigationFailureType } from 'vue-router'
* }
* })
* ```
- * @param error - possible {@link NavigationFailure}
- * @param type - optional types to check for
*/
export function isNavigationFailure(
error: any,
* navigation guards have been successful. Returns a function that removes the
* registered guard.
*
+ * @param guard - navigation guard to add
+ * @returns a function that removes the registered guard
+ *
* @example
* ```js
* router.beforeResolve(to => {
* })
* ```
*
- * @param guard - navigation guard to add
*/
beforeResolve(guard: NavigationGuardWithThis<undefined>): () => void
+
/**
* Add a navigation hook that is executed after every navigation. Returns a
* function that removes the registered hook.
*
+ * @param guard - navigation hook to add
+ * @returns a function that removes the registered hook
+ *
* @example
* ```js
* router.afterEach((to, from, failure) => {
* }
* })
* ```
- *
- * @param guard - navigation hook to add
*/
afterEach(guard: NavigationHookAfter): () => void