Skip to main content

Interface: UpdateStatusEventData

Defined in: shared/types/events.ts:854

Payload for update status change events.

Remarksโ€‹

Used to communicate the current status of app updates, including errors.

  • status: The current update status.

Exampleโ€‹

// Example: Update downloaded

const event: UpdateStatusEventData = {
status: "downloaded",
};

Propertiesโ€‹

error?โ€‹

readonly optional error?: string;

Defined in: shared/types/events.ts:858

Error message if status is 'error'.


revision?โ€‹

readonly optional revision?: number;

Defined in: shared/types/events.ts:860

Monotonic main-process status revision used to reject stale snapshots.


statusโ€‹

readonly status: UpdateStatus;

Defined in: shared/types/events.ts:867

The current update status.

Remarksโ€‹

See UPDATE_STATUS for the complete list.