# CollectionBase

```ts
type CollectionBase<TKey, TOutput> = Pick<SortedMap<TKey, TOutput>, 
  | "size"
  | "get"
  | "has"
  | "keys"
  | "values"
  | "entries"
| typeof Symbol.iterator>;
```

Defined in: [packages/db/src/collection/index.ts:51](https://github.com/TanStack/db/blob/main/packages/db/src/collection/index.ts#L51)

## Type Parameters

### TKey

`TKey` *extends* `string` \| `number`

### TOutput

`TOutput`
