From: Eduardo San Martin Morote Date: Fri, 17 Apr 2020 09:38:15 +0000 (+0200) Subject: types(router): mark history and currentRoute as readonly X-Git-Tag: v4.0.0-alpha.6~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efad911978eaffa97c1107f78488a2b6b2ecc1ab;p=thirdparty%2Fvuejs%2Frouter.git types(router): mark history and currentRoute as readonly --- 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