Type alias Complete<T>

Complete<T>: {
    [P in keyof Required<T>]: Pick<T, P> extends Required<Pick<T, P>>
        ? T[P]
        : T[P] | undefined
}

Represents a type that completes optional properties of a given type. The resulting type will have all properties of the original type as required, except for those that were already required.

Type Parameters

  • T

    The original type.

Generated using TypeDoc