Returns all shallow properties that accept undefined or null. Does not include Optional properties, only undefined or null.
undefined
null
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 totype UndefinedProps = 'id' | 'createdAt' | 'firstName';
Generated using TypeDoc
Returns all shallow properties that accept
undefined
ornull
. Does not include Optional properties, onlyundefined
ornull
.Example