2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-06 11:52:24 +03:00
Files
vue-meta/types/vue.d.ts
T
2019-01-28 15:21:38 +01:00

19 lines
336 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 {
$meta(): MetaInfo
}
}