From 4b241ba3c32f4456252768b664488799a8278f0e Mon Sep 17 00:00:00 2001 From: Christophe Carvalho Vilas-Boas Date: Sat, 7 Dec 2024 00:55:11 +0100 Subject: [PATCH] fix(types): handle array of strings in AppConfig (#2854) --- src/runtime/types/utils.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/runtime/types/utils.ts b/src/runtime/types/utils.ts index d62764db..29f22cd6 100644 --- a/src/runtime/types/utils.ts +++ b/src/runtime/types/utils.ts @@ -3,9 +3,11 @@ export interface TightMap { } export type DeepPartial = { - [P in keyof T]?: T[P] extends object - ? DeepPartial - : T[P]; + [P in keyof T]?: T[P] extends Array + ? string + : T[P] extends object + ? DeepPartial + : T[P]; } & { [key: string]: O | TightMap }