fix(types): improve DeepPartial type for App Config (#2621)

This commit is contained in:
Julien Blatecky
2024-11-14 10:33:26 +01:00
committed by GitHub
parent 35e3b8c720
commit 976b03f241

View File

@@ -7,7 +7,7 @@ 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];
: T[P] extends string ? string : T[P];
} & {
[key: string]: O | TightMap<O>
}