mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 21:55:11 +00:00
fix(schema): decrease recursion on DeepPartial
(#4695)
This commit is contained in:
parent
8424165258
commit
59a8d43a8f
@ -8,7 +8,7 @@ export default {
|
|||||||
* See https://vitejs.dev/config for more information.
|
* See https://vitejs.dev/config for more information.
|
||||||
* Please note that not all vite options are supported in Nuxt.
|
* Please note that not all vite options are supported in Nuxt.
|
||||||
*
|
*
|
||||||
* @type {typeof import('vite').InlineConfig}
|
* @type {typeof import('vite').UserConfig}
|
||||||
* @version 3
|
* @version 3
|
||||||
*/
|
*/
|
||||||
vite: {
|
vite: {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { ConfigSchema } from '../../schema/config'
|
import { ConfigSchema } from '../../schema/config'
|
||||||
import type { ResolvedConfig } from 'c12'
|
import type { ResolvedConfig } from 'c12'
|
||||||
|
|
||||||
type DeepPartial<T> = T extends Record<string, any> ? { [P in keyof T]?: DeepPartial<T[P]> | T[P] } : T
|
type DeepPartial<T> = T extends Record<string, any> ? { [P in keyof T]?: DeepPartial<T[P]> } : T
|
||||||
|
|
||||||
/** User configuration in `nuxt.config` file */
|
/** User configuration in `nuxt.config` file */
|
||||||
export interface NuxtConfig extends DeepPartial<ConfigSchema> {
|
export interface NuxtConfig extends DeepPartial<ConfigSchema> {
|
||||||
|
Loading…
Reference in New Issue
Block a user