Skip to content

Commit

Permalink
fix: Move SEO types out of Vue module declaration (#335)
Browse files Browse the repository at this point in the history
fix: Move SEO types out of Vue module declaration
  • Loading branch information
paulgv authored Jun 22, 2019
2 parents e046a5f + be085d5 commit 0cc0ba0
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions types/vue.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,27 +76,28 @@ declare namespace NuxtVueI18n {
}
}

interface NuxtI18nSeo {
htmlAttrs?: {
lang?: string
}
link?: {
hid: string,
rel: string,
href: string,
hreflang: string
}[]
meta?: {
hid: string,
name: string,
property: string,
content: string
}[]
}

/**
* 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;
Expand Down

0 comments on commit 0cc0ba0

Please sign in to comment.