We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
posva
yyx990803
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 1c8e802 commit d3edd63Copy full SHA for d3edd63
types/router.d.ts
@@ -1,13 +1,13 @@
1
import Vue, { ComponentOptions, PluginFunction, AsyncComponent } from 'vue'
2
3
type Component = ComponentOptions<Vue> | typeof Vue | AsyncComponent
4
-type Dictionary < T > = { [key: string]: T }
+type Dictionary<T> = { [key: string]: T }
5
type ErrorHandler = (err: Error) => void
6
7
export type RouterMode = 'hash' | 'history' | 'abstract'
8
export type RawLocation = string | Location
9
export type RedirectOption = RawLocation | ((to: Route) => RawLocation)
10
-export type NavigationGuard < V extends Vue = Vue > = (
+export type NavigationGuard<V extends Vue = Vue> = (
11
to: Route,
12
from: Route,
13
next: (to?: RawLocation | false | ((vm: V) => any) | void) => void
0 commit comments