Type alias NullableProperties<T>

NullableProperties<T>: {
    [K in keyof T]: undefined extends T[K]
        ? K
        : never
}[keyof T]

Extracts the keys of properties in type T that are explicitly allowed to be undefined.

Type Parameters

  • T

    The type whose properties are to be examined.

Returns

A union type of the keys of T that can be undefined.

Generated using TypeDoc