From efad911978eaffa97c1107f78488a2b6b2ecc1ab Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Fri, 17 Apr 2020 11:38:15 +0200 Subject: [PATCH] types(router): mark history and currentRoute as readonly --- src/router.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/router.ts b/src/router.ts index 8be5ce13..4e2ffa37 100644 --- a/src/router.ts +++ b/src/router.ts @@ -84,8 +84,8 @@ export interface RouterOptions { } export interface Router { - history: RouterHistory - currentRoute: Ref + readonly history: RouterHistory + readonly currentRoute: Ref addRoute(parentName: RouteRecordName, route: RouteRecordRaw): () => void addRoute(route: RouteRecordRaw): () => void -- 2.39.5