diff --git a/types/router.d.ts b/types/router.d.ts index ec48c7dcaf..e519d8b8f8 100644 --- a/types/router.d.ts +++ b/types/router.d.ts @@ -118,7 +118,7 @@ interface _RouteConfigBase { children?: RouteConfig[] redirect?: RedirectOption alias?: string | string[] - meta?: any + meta?: RouteMeta beforeEnter?: NavigationGuard caseSensitive?: boolean pathToRegexpOptions?: PathToRegexpOptions @@ -145,7 +145,7 @@ export interface RouteRecord { parent?: RouteRecord redirect?: RedirectOption matchAs?: string - meta: any + meta: RouteMeta beforeEnter?: ( route: Route, redirect: (location: RawLocation) => void, @@ -177,5 +177,8 @@ export interface Route { fullPath: string matched: RouteRecord[] redirectedFrom?: string - meta?: any + meta?: RouteMeta +} + +export interface RouteMeta { }