Type Alias DeepPartial<T>

DeepPartial<T>: T extends Fun | Primitive
    ? T
    : T extends object
        ? {
            [P in keyof T]?: DeepPartial<T[P]>
        }
        : T

An object whose properties are all optional, and all sub-properties are optional. Note: does not convert array or tuple elements to Partial.

Type Parameters

  • T