Skip to main content

validateSyncPersistenceCapability

还没翻译译自英文(tanstack.com)本页 13 段都还没译

function validateSyncPersistenceCapability<TKey>(value): 
  | SyncPersistenceCapabilityV1<TKey>
  | null;

Defined in: packages/db/src/sync-persistence.ts:38

Internal

Validates the cross-package structural persistence protocol before a sync adapter uses it. Null explicitly means that the collection has no persistence capability; undefined means a wrapper dropped the required field. Any advertised capability must be complete.

This is adapter infrastructure, not an application API.

Type Parameters

TKey

TKey extends string | number = string | number

Parameters

value

unknown

Returns

| SyncPersistenceCapabilityV1<TKey> | null