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

Function normalizeSyncFnResult

packages/db/src/collection/sync.ts:535–545  ·  view source on GitHub ↗
(result: void | CleanupFn | SyncConfigRes)

Source from the content-addressed store, hash-verified

533}
534
535function normalizeSyncFnResult(result: void | CleanupFn | SyncConfigRes) {
536 if (typeof result === `function`) {
537 return { cleanup: result }
538 }
539
540 if (typeof result === `object`) {
541 return result
542 }
543
544 return undefined
545}

Callers 1

startSyncMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected