API reference › @evolu/common › Type › nullableToOptional
function nullableToOptional<Props>(
props: Props,
): ObjectType<NullableToOptionalProps<Props>>;
Defined in: packages/common/src/Type.ts:4424
Converts each “nullable” property (a union that includes Null) into an
optional property. This means consumers can omit the property
entirely, or set it to null, or set it to the non-null member of the
union.