O3 Framework / setupOfflineSync
setupOfflineSync<
T>(type,dependsOn,process,options):void
Defined in: packages/framework/esm-offline/src/sync.ts:365
Registers a new synchronization handler which is able to synchronize data of a specific type.
T
string
The identifying type of the synchronization items which can be handled by this handler.
string[]
An array of other sync item types which must be synchronized before this handler can synchronize its own data. Items of these types are effectively dependencies of the data synchronized by this handler.
ProcessSyncItem<T>
A function which, when invoked, performs the actual client-server synchronization of the given
item (which is the actual data to be synchronized).
SetupOfflineSyncOptions<T> = {}
Additional options which can optionally be provided when setting up a synchronization callback for a specific synchronization item type.
void