mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-05-17 10:59:38 +03:00
7b85ff22f5
* chore: update types for v2 * fix: script.type shouldnt be required fix: define meta.http-equiv as string, too many options to list * chore: improve types * chore: update typescript dependency * chore: remove unnecessary gitignore * chore: add metainfocomputed type * chore: use camelcase for type * chore: add interfaces for metaInfo properties * chore: add missing body boolen for script types * chore: include all type files on build * chore: remove unused import
19 lines
375 B
TypeScript
19 lines
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
|
|
}
|
|
}
|