fix(bridge): define `head` with `vue-meta` type (#784)

This commit is contained in:
Daniel Roe 2021-10-12 16:22:37 +01:00 committed by GitHub
parent 743160702a
commit 2a0afbd092
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,6 @@
import type {} from '@nuxt/nitro'
import type { NuxtConfig as _NuxtConfig } from '@nuxt/kit'
import type { MetaInfo } from 'vue-meta'
export interface BridgeConfig {
nitro: boolean
@ -19,11 +20,13 @@ export interface BridgeConfig {
// TODO: Also inherit from @nuxt/types.NuxtConfig for legacy type compat
export interface NuxtConfig extends _NuxtConfig {
bridge?: Partial<BridgeConfig> | false
head?: _NuxtConfig['head'] | MetaInfo
}
declare module '@nuxt/kit' {
interface ConfigSchema {
bridge: BridgeConfig
head: _NuxtConfig['head'] | MetaInfo
}
}