Type Alias SetOptionalAndNullable<OriginalObjectGeneric, OptionalKeysGeneric>

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

Sets a key as optional but also nullable.

Type Parameters