jmap-kit
    Preparing search index...

    Type Alias DeepPartial<T, Depth>

    DeepPartial: [Depth] extends [0]
        ? T
        : T extends object
            ? {
                [P in keyof T]?: T[P] extends (infer U)[]
                    ? DeepPartial<U, Decrement<Depth>>[]
                    : Extract<T[P], object> extends object
                        ? DeepPartial<T[P], Decrement<Depth>>
                        : T[P]
            }
            : T

    A utility type that makes all properties of T optional recursively

    Type Parameters

    • T

      The type to make partially optional

    • Depth extends number = 5

      Maximum recursion depth (default: 5)

    A new type where all properties of T are optional, recursively down to the specified depth for nested objects