PartialOrUndefined<T>: {
    [P in keyof T]?: T[P]
}

Like Partial, but also allows undefined. Useful when "exactOptionalPropertyTypes" is enabled.

Type Parameters

  • T