vue-3-meta
Version:
Manage HTML metadata in Vue.js components with ssr support
19 lines (15 loc) • 375 B
TypeScript
/**
* Augment the typings of Vue.js
*/
import Vue, { ComponentOptions } from 'vue'
import { MetaInfo, MetaInfoComputed, VueMetaPlugin } from './vue-meta'
declare module 'vue/types/vue' {
interface Vue {
$meta(): VueMetaPlugin
}
}
declare module 'vue/types/options' {
interface ComponentOptions<V extends Vue> {
metaInfo?: MetaInfo | MetaInfoComputed
}
}