fix(schema): exclude vite from DeepPartial (#4772)

This commit is contained in:
Daniel Roe 2022-05-03 10:56:59 +01:00 committed by GitHub
parent f74a523f13
commit 8962cb7ef4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,8 @@ import type { ResolvedConfig } from 'c12'
type DeepPartial<T> = T extends Record<string, any> ? { [P in keyof T]?: DeepPartial<T[P]> } : T
/** User configuration in `nuxt.config` file */
export interface NuxtConfig extends DeepPartial<ConfigSchema> {
export interface NuxtConfig extends DeepPartial<Omit<ConfigSchema, 'vite'>> {
vite?: ConfigSchema['vite']
[key: string]: any
}