From f476a0abb4b3605b72d973b93e4166671d83ee28 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 27 Jul 2022 13:37:05 +0100 Subject: [PATCH] fix(schema): exclude functions from `DeepPartial` --- packages/schema/src/types/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/schema/src/types/config.ts b/packages/schema/src/types/config.ts index 827c3fbdc6e..dea1f696a5b 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 +type DeepPartial = T extends Function ? T : T extends Record ? { [P in keyof T]?: DeepPartial } : T /** User configuration in `nuxt.config` file */ export interface NuxtConfig extends DeepPartial> {