Open History to see the last commit
1---
2id: withCollectionSyncConfigFactory
3title: withCollectionSyncConfigFactory
4---
5
6```ts
7function withCollectionSyncConfigFactory<TSync>(sync, factory): CollectionSyncConfigWithFactory<TSync>;
8```
9
10Defined in: [packages/db/src/collection/index.ts:66](https://github.com/TanStack/db/blob/main/packages/db/src/collection/index.ts#L66)
11
12**`Internal`**
13
14Lets adapters bind a sync config to each collection instance.
15
16## Type Parameters
17
18### TSync
19
20`TSync` *extends* `object`
21
22## Parameters
23
24### sync
25
26`TSync`
27
28### factory
29
30(`source`, `utilities`) => `TSync`
31
32## Returns
33
34`CollectionSyncConfigWithFactory`\<`TSync`\>