Skip to content

Commit

Permalink
fix(types): update NuxtI18nSeo interface to use VueMeta types
Browse files Browse the repository at this point in the history
  • Loading branch information
rchl committed Sep 3, 2019
1 parent df5ac8a commit 3a4ada6
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions types/vue.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Vue from "vue";
import { RawLocation } from "vue-router";
import VueI18n, { IVueI18n } from "vue-i18n";
import { MetaInfo } from 'vue-meta'

/**
* The nuxt-i18n types namespace
Expand Down Expand Up @@ -78,22 +79,10 @@ 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
}[]
export interface NuxtI18nSeo {
htmlAttrs?: MetaInfo['htmlAttrs']
link?: MetaInfo['link']
meta?: MetaInfo['meta']
}

/**
Expand Down

0 comments on commit 3a4ada6

Please sign in to comment.