Type alias AllowNullForNullable<T>

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

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

Type Parameters

  • T

    The type whose properties are to be transformed.

Returns

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

Generated using TypeDoc