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

View File

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