From 03ef1d1c08775d3d0fad5802260b4c7cefacbb91 Mon Sep 17 00:00:00 2001 From: Ravi van Rooijen Date: Tue, 24 Nov 2020 14:32:55 +0100 Subject: [PATCH] types: Add RouteMeta interface to enable module augmentation --- types/router.d.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 { }