[API reference](https://evolu.dev/docs/api-reference) › [@evolu/common](https://evolu.dev/docs/api-reference/common) › [Types](https://evolu.dev/docs/api-reference/common/Types) › NullablePartial

```ts
type NullablePartial<T, NK, NP> = { [K in keyof NP]: NP[K] };
```

Defined in: [packages/common/src/Types.ts:257](https://github.com/evoluhq/evolu/blob/b782062e1eff1d3b5adbc8e1f15cc2de600f2341/packages/common/src/Types.ts#L257)

Makes properties optional if they accept `null` as a value.

For each property in `T`, if `null` is a valid value for that property, the
property will be made optional in the resulting type.

### Optional nullable properties

```ts

type Example = {
  required: string;
  optionalWithNull: string | null;
};

expectTypeOf<NullablePartial<Example>>().toEqualTypeOf<{
  required: string;
  optionalWithNull?: string | null;
}>();
```