Skip to content

Commit

Permalink
fix: add types for nuxtI18nSeo
Browse files Browse the repository at this point in the history
  • Loading branch information
aldarund committed May 30, 2019
1 parent bd6b8f6 commit 5811bbe
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions types/vue.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,28 @@ declare namespace NuxtVueI18n {
* Extends types in vue
*/
declare module "vue/types/vue" {
interface NuxtI18nSeo {
htmlAttrs: {
lang: string
},
link: [{
hid: string,
rel: string,
href: string,
hreflang: string
}],
meta: [{
hid: string,
name: string,
property: string,
content: string
}]
}
interface Vue {
localePath(route: RawLocation, locale?: string): string;
switchLocalePath(locale: string): string;
getRouteBaseName(route: RawLocation): string;
$nuxtI18nSeo: () => NuxtI18nSeo
// PHPStorm without this indicates that "$i18n" was not found.
readonly $i18n: VueI18n & IVueI18n;
}
Expand Down

0 comments on commit 5811bbe

Please sign in to comment.