Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

withCollectionSyncConfigFactory.md

34 lines613 Bytes

function withCollectionSyncConfigFactory<TSync>(sync, factory): CollectionSyncConfigWithFactory<TSync>;

Defined in: packages/db/src/collection/index.ts:66

Internal

Lets adapters bind a sync config to each collection instance.

Type Parameters

TSync

TSync extends object

Parameters

sync

TSync

factory

(source, utilities) => TSync

Returns

CollectionSyncConfigWithFactory<TSync>