Type alias PartialSome<T, K>

PartialSome<T, K>: Omit<T, K> & {
    [MK in K]?: T[MK]
}

Make the properties defined in the union optional.

Type Parameters

  • T extends Record<PropertyKey, any>

  • K extends keyof T

Generated using TypeDoc