mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-05 11:52:24 +03:00
4addca07ef
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.
19 lines
339 B
TypeScript
19 lines
339 B
TypeScript
/**
|
|
* Augment the typings of Vue.js
|
|
*/
|
|
|
|
import Vue, { ComponentOptions } from "vue";
|
|
import { MetaInfo } from './index';
|
|
|
|
declare module "vue/types/options" {
|
|
interface ComponentOptions<V extends Vue> {
|
|
metaInfo?: MetaInfo | (() => MetaInfo)
|
|
}
|
|
}
|
|
|
|
declare module "vue/types/vue" {
|
|
interface Vue {
|
|
metaInfo(): MetaInfo
|
|
}
|
|
}
|