Open jtwang7 opened 1 year ago
自定义类型:
export type DeepRequired<T> = T extends object ? Required< { [P in keyof T]: DeepRequired<T[P]>; } > : T;
export type DeepPartial<T> = T extends object ? Partial< { [P in keyof T]: DeepPartial<T[P]>; } > : T;
DeepRequired & DeepPartial
自定义类型:
DeepRequired
DeepPartial