2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-16 22:00:34 +03:00

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.
This commit is contained in:
さくら
2018-06-07 10:32:41 +08:00
committed by GitHub
parent 49fe9462fd
commit 4addca07ef
+1 -1
View File
@@ -13,6 +13,6 @@ declare module "vue/types/options" {
declare module "vue/types/vue" {
interface Vue {
metaInfo?: MetaInfo | (() => MetaInfo)
metaInfo(): MetaInfo
}
}