diff --git a/packages/schema/src/config/vite.ts b/packages/schema/src/config/vite.ts index cbafc0e07f..54de80a70a 100644 --- a/packages/schema/src/config/vite.ts +++ b/packages/schema/src/config/vite.ts @@ -8,7 +8,7 @@ export default { * See https://vitejs.dev/config for more information. * Please note that not all vite options are supported in Nuxt. * - * @type {typeof import('vite').InlineConfig} + * @type {typeof import('vite').UserConfig} * @version 3 */ vite: { diff --git a/packages/schema/src/types/config.ts b/packages/schema/src/types/config.ts index e090a0fa3b..1ba1d89c85 100644 --- a/packages/schema/src/types/config.ts +++ b/packages/schema/src/types/config.ts @@ -1,7 +1,7 @@ import { ConfigSchema } from '../../schema/config' import type { ResolvedConfig } from 'c12' -type DeepPartial = T extends Record ? { [P in keyof T]?: DeepPartial | T[P] } : T +type DeepPartial = T extends Record ? { [P in keyof T]?: DeepPartial } : T /** User configuration in `nuxt.config` file */ export interface NuxtConfig extends DeepPartial {