fix(types): handle array of strings in AppConfig (#2854)

This commit is contained in:
Christophe Carvalho Vilas-Boas
2024-12-07 00:55:11 +01:00
committed by GitHub
parent 80befc107c
commit 4b241ba3c3

View File

@@ -3,9 +3,11 @@ export interface TightMap<O = any> {
}
export type DeepPartial<T, O = any> = {
[P in keyof T]?: T[P] extends object
? DeepPartial<T[P], O>
: T[P];
[P in keyof T]?: T[P] extends Array<string>
? string
: T[P] extends object
? DeepPartial<T[P], O>
: T[P];
} & {
[key: string]: O | TightMap<O>
}