Skip to content

Commit c47f9c4

Browse files
committed
types(errors): add TS types
1 parent c567ef5 commit c47f9c4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

types/router.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,17 @@ export declare class VueRouter {
6161
}
6262

6363
static install: PluginFunction<never>
64+
static version: string
65+
66+
static isRouterError: (error: any, type?: NavigationFailureTypeE) => error is Error
67+
static NavigationFailureType: NavigationFailureTypeE
68+
}
69+
70+
export enum NavigationFailureTypeE {
71+
redirected = 1,
72+
aborted = 2,
73+
cancelled = 3,
74+
duplicated = 4
6475
}
6576

6677
type Position = { x: number; y: number }

0 commit comments

Comments
 (0)