core.medplumclienteventmap | Medplum

MedplumClientEventMap type

This map enumerates all the lifecycle events that MedplumClient emits and what the shape of the Event is.

Signature:

export type MedplumClientEventMap = {

change: {

type: 'change';

};

offline: {

type: 'offline';

};

profileRefreshing: {

type: 'profileRefreshing';

};

profileRefreshed: {

type: 'profileRefreshed';

};

storageInitialized: {

type: 'storageInitialized';

};

storageInitFailed: {

type: 'storageInitFailed';

payload: {

error: Error;

};

};

resourceModified: {

type: 'resourceModified';

payload: ResourceModifiedEvent;

};

};

References: ResourceModifiedEvent