Type Alias AllowNullForNullable<T>

AllowNullForNullable: {
    [K in keyof T]: K extends NullableProperties<T>
        ? AllowNullForNullableValue<NonNullable<T[K]>> | null | undefined
        : AllowNullForNullableValue<T[K]>
}

Transforms a type T by allowing null as an additional type for its nullable properties.

Recurses into plain object values (e.g. object schema attributes) so that nullable fields at any depth receive | null, matching root-level nullable attribute behavior during updates.

Type Parameters

  • T

    The type whose properties are to be transformed.

A new type with properties of T where each nullable property is also allowed to be null.