The API reference is a Work in Progress and will be continuously improved and extended. We'd love to hear your feedback in our documentation repository.

Home > @edtr-io/ui > DeepPartial

DeepPartial type

Transforms a type by making all its properties optional, recursively.

export declare type DeepPartial<T> = {
  [P in keyof T]?: T[P] extends (infer U)[]
    ? DeepPartial<U>[]
    : T[P] extends readonly (infer U)[]
    ? readonly DeepPartial<U>[]
    : T[P] extends Function
    ? T[P]
    : DeepPartial<T[P]>
References: [DeepPartial](./