mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-24 18:00:35 +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:
Vendored
+1
-1
@@ -13,6 +13,6 @@ declare module "vue/types/options" {
|
|||||||
|
|
||||||
declare module "vue/types/vue" {
|
declare module "vue/types/vue" {
|
||||||
interface Vue {
|
interface Vue {
|
||||||
metaInfo?: MetaInfo | (() => MetaInfo)
|
metaInfo(): MetaInfo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user