Skip to content

Commit fe62005

Browse files
committed
fix changedData types
1 parent bf6c9dd commit fe62005

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/utils.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import {customRef} from 'vue'
22

3-
export type DeepPartial<T> = T extends object ? { [P in keyof T]?: DeepPartial<T[P]> } : T
3+
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
48

59
export interface NestedProxyPathItem {
610
target: Record<string, any>

0 commit comments

Comments
 (0)