type UndefinedProps = NullishPropertiesOf<{
id: number | undefined,
createdAt: string | undefined,
firstName: string | null, // nullable properties are included
lastName?: string, // optional properties are not included.
}>;
// is equal to
type UndefinedProps = 'id' | 'createdAt' | 'firstName';
Returns all shallow properties that accept
undefined
ornull
. Does not include Optional properties, onlyundefined
ornull
.