# MakeOptional

<!-- DO NOT EDIT: this page is autogenerated from the type comments -->

```ts
type MakeOptional<T, K> = Omit<T, K> & Partial<Pick<T, K>>;
```

Defined in: [packages/db/src/types.ts:1452](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L1452)

## Type Parameters

### T

`T`

### K

`K` *extends* keyof `T`
