Skip to content

Commit

Permalink
types: Add RouteMeta interface to enable module augmentation
Browse files Browse the repository at this point in the history
  • Loading branch information
HoldYourWaffle committed Nov 24, 2020
1 parent 993c58c commit 03ef1d1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions types/router.d.ts
Expand Up @@ -118,7 +118,7 @@ interface _RouteConfigBase {
children?: RouteConfig[]
redirect?: RedirectOption
alias?: string | string[]
meta?: any
meta?: RouteMeta
beforeEnter?: NavigationGuard
caseSensitive?: boolean
pathToRegexpOptions?: PathToRegexpOptions
Expand All @@ -145,7 +145,7 @@ export interface RouteRecord {
parent?: RouteRecord
redirect?: RedirectOption
matchAs?: string
meta: any
meta: RouteMeta
beforeEnter?: (
route: Route,
redirect: (location: RawLocation) => void,
Expand Down Expand Up @@ -177,5 +177,8 @@ export interface Route {
fullPath: string
matched: RouteRecord[]
redirectedFrom?: string
meta?: any
meta?: RouteMeta
}

export interface RouteMeta {
}

0 comments on commit 03ef1d1

Please sign in to comment.