📅  最后修改于: 2022-03-11 14:48:27.535000             🧑  作者: Mango
type RecursivePartial = {
[P in keyof T]?:
T[P] extends (infer U)[] ? RecursivePartial[] :
T[P] extends object ? RecursivePartial :
T[P];
};