mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(bridge): define head
with vue-meta
type (#784)
This commit is contained in:
parent
743160702a
commit
2a0afbd092
3
packages/bridge/types.d.ts
vendored
3
packages/bridge/types.d.ts
vendored
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user