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 authored and posva committed Jun 21, 2021
1 parent 306602d commit f4698cc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions types/router.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ interface _RouteConfigBase {
children?: RouteConfig[]
redirect?: RedirectOption
alias?: string | string[]
meta?: any
meta?: RouteMeta
beforeEnter?: NavigationGuard
caseSensitive?: boolean
pathToRegexpOptions?: PathToRegexpOptions
Expand All @@ -153,7 +153,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 @@ -205,5 +205,8 @@ export interface Route {
fullPath: string
matched: RouteRecord[]
redirectedFrom?: string
meta?: any
meta?: RouteMeta
}

export interface RouteMeta {
}

0 comments on commit f4698cc

Please sign in to comment.