From: Bluenix Date: Wed, 14 Apr 2021 21:37:18 +0000 (+0200) Subject: docs: fix RouteMeta typing example (#883) X-Git-Tag: v4.0.7~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4449d9e253ad525e010e7ff3ffa13754f8d6448b;p=thirdparty%2Fvuejs%2Frouter.git docs: fix RouteMeta typing example (#883) Without this change the example would have no exported members other than RouteMeta --- diff --git a/docs/guide/advanced/meta.md b/docs/guide/advanced/meta.md index 07ecb5fc..17a290e7 100644 --- a/docs/guide/advanced/meta.md +++ b/docs/guide/advanced/meta.md @@ -56,6 +56,8 @@ router.beforeEach((to, from) => { It is possible to type the meta field by extending the `RouteMeta` interface: ```ts +import 'vue-router' + declare module 'vue-router' { interface RouteMeta { // is optional