MCPcopy Create free account
hub / github.com/TanStack/db / isValidSyncConfig

Function isValidSyncConfig

packages/db-sqlite-persistence-core/src/persisted.ts:552–558  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

550}
551
552function isValidSyncConfig(value: unknown): value is SyncConfig<object> {
553 if (!isRecord(value)) {
554 return false
555 }
556
557 return typeof value.sync === `function`
558}
559
560export type PersistedCollectionMode = `sync-present` | `sync-absent`
561type PersistedMode = PersistedCollectionMode

Callers 1

Calls 1

isRecordFunction · 0.85

Tested by

no test coverage detected