We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf6c9dd commit fe62005Copy full SHA for fe62005
src/utils.ts
@@ -1,6 +1,10 @@
1
import {customRef} from 'vue'
2
3
-export type DeepPartial<T> = T extends object ? { [P in keyof T]?: DeepPartial<T[P]> } : T
+export type DeepPartial<Value> = Value extends object
4
+ ? Value extends Array<infer ArrayValue>
5
+ ? Array<DeepPartial<ArrayValue>>
6
+ : { [Property in keyof Value]?: DeepPartial<Value[Property]> }
7
+ : Value
8
9
export interface NestedProxyPathItem {
10
target: Record<string, any>
0 commit comments