Type Alias SetOptionalAndNullable<OriginalObjectGeneric, OptionalKeysGeneric>

SetOptionalAndNullable: Simplify<
    Except<OriginalObjectGeneric, OptionalKeysGeneric> & {
        [PropKey in OptionalKeysGeneric]?:
            | OriginalObjectGeneric[PropKey]
            | null
    },
>

Sets a key as optional but also nullable.

Type Parameters