openmrs-esm-core

O3 Framework / queueSynchronizationItem

Function: queueSynchronizationItem()

queueSynchronizationItem<T>(type, content, descriptor?): Promise<number>

Defined in: packages/framework/esm-offline/src/sync.ts:261

Enqueues a new item in the sync queue and associates the item with the currently signed in user.

Type Parameters

T

T

Parameters

type

string

The identifying type of the synchronization item.

content

T

The actual data to be synchronized.

descriptor?

QueueItemDescriptor

An optional descriptor providing additional metadata about the sync item.

Returns

Promise<number>