Type Alias RecursivePartial<T>

RecursivePartial: {
    [P in keyof T]?: T[P] extends (infer U)[]
        ? RecursivePartial<U>[]
        : T[P] extends object ? RecursivePartial<T[P]> : T[P]
}

Makes all fields optional recursively

Type Parameters

  • T

    The type to make recursively partial

A type with all nested properties made optional