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:
Vendored
+1
-1
@@ -13,6 +13,6 @@ declare module "vue/types/options" {
|
||||
|
||||
declare module "vue/types/vue" {
|
||||
interface Vue {
|
||||
metaInfo?: MetaInfo | (() => MetaInfo)
|
||||
metaInfo(): MetaInfo
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user