📜  typescript recursive partial - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:27.535000             🧑  作者: Mango

代码示例1
type RecursivePartial = {
  [P in keyof T]?:
    T[P] extends (infer U)[] ? RecursivePartial[] :
    T[P] extends object ? RecursivePartial :
    T[P];
};