From 4addca07ef9de8c317a141884b3240c947bd02aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=95=E3=81=8F=E3=82=89?= Date: Thu, 7 Jun 2018 10:32:41 +0800 Subject: [PATCH] fix(types): `metaInfo` should always be a member function In `vue-class-component`, if the defined function is not a member function, it is treated as a data property. Even if you register a custom hook via `Component.registerHooks`, it will not work. --- types/vue.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/vue.d.ts b/types/vue.d.ts index fb449e7..7c5eaaa 100644 --- a/types/vue.d.ts +++ b/types/vue.d.ts @@ -13,6 +13,6 @@ declare module "vue/types/options" { declare module "vue/types/vue" { interface Vue { - metaInfo?: MetaInfo | (() => MetaInfo) + metaInfo(): MetaInfo } }