Type Alias AllowNullForNullableValue<T>

AllowNullForNullableValue: T extends | Date
| readonly unknown[]
| string
| number
| boolean
| null
| undefined
| (...args: unknown[]) => unknown
    ? T
    : T extends Record<string, unknown> ? Partial<AllowNullForNullable<T>> : T

Recursively resolves the value type for AllowNullForNullable.

For plain object types (not Date, arrays, primitives, or functions), wraps with Partial<> and recurses via AllowNullForNullable so that:

  • All fields within @ObjectAttribute objects are optional in update payloads, matching the partial update semantics (only provided fields are modified).
  • Nullable fields at any nesting depth receive | null during updates.

Primitives, Date, arrays, and functions pass through unchanged.

Type Parameters

  • T