diff --git a/packages/nuxt/config.d.ts b/packages/nuxt/config.d.ts index ddd2beade0..8eab74f3c6 100644 --- a/packages/nuxt/config.d.ts +++ b/packages/nuxt/config.d.ts @@ -2,4 +2,5 @@ import type { NuxtConfig } from 'nuxt/schema' import type { DefineConfig, InputConfig, UserInputConfig, ConfigLayerMeta } from 'c12' export { NuxtConfig } from 'nuxt/schema' -export declare const defineNuxtConfig: DefineConfig +export interface DefineNuxtConfig extends DefineConfig {} +export declare const defineNuxtConfig: DefineNuxtConfig diff --git a/packages/nuxt/types.d.ts b/packages/nuxt/types.d.ts index 220045a6a6..d2dddd2211 100644 --- a/packages/nuxt/types.d.ts +++ b/packages/nuxt/types.d.ts @@ -1,12 +1,13 @@ /// export * from './dist/index' +import type { DefineNuxtConfig } from 'nuxt/config' import type { SchemaDefinition, RuntimeConfig } from 'nuxt/schema' import type { H3Event } from 'h3' import type { NuxtIslandContext, NuxtIslandResponse, NuxtRenderHTMLContext } from './dist/core/runtime/nitro/renderer' declare global { - const defineNuxtConfig: typeof import('nuxt/config')['defineNuxtConfig'] + const defineNuxtConfig: DefineNuxtConfig const defineNuxtSchema: (schema: SchemaDefinition) => SchemaDefinition }