-
Notifications
You must be signed in to change notification settings - Fork 6
/
IRoute.ts
50 lines (42 loc) · 929 Bytes
/
IRoute.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
* This should be the vue router type but it causes a lot of issues with mismatching versions so create
* a separate interface for the route
*/
export interface IRoute {
/**
* The target path of the route
*/
path: string;
/**
* The target name of the route
*/
name?: string;
/**
* The hash that is part of the route
*/
hash: string;
/**
* Any query params that are part of the route will be in here
*/
query: { [key: string]: string };
/**
* Any route params will be in here
*/
params: { [key: string]: string };
/**
* This is the full path of the route that we will navigate to
*/
fullPath: string;
/**
* An array of the matched vue components
*/
matched: Array<any>;
/**
* When redirected this will contain the path of the source
*/
redirectedFrom?: string;
/**
* Any meta data defined on the route object
*/
meta?: any;
}