Skip to content

Commit 976b03f

Browse files
authoredNov 14, 2024··
fix(types): improve DeepPartial type for App Config (#2621)
1 parent 35e3b8c commit 976b03f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/runtime/types/utils.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export interface TightMap<O = any> {
77
export type DeepPartial<T, O = any> = {
88
[P in keyof T]?: T[P] extends object
99
? DeepPartial<T[P], O>
10-
: T[P];
10+
: T[P] extends string ? string : T[P];
1111
} & {
1212
[key: string]: O | TightMap<O>
1313
}

0 commit comments

Comments
 (0)
Please sign in to comment.