API Reference / @evolu/common / Evolu/Internal / DbWorkerOutput
Type Alias: DbWorkerOutput
type DbWorkerOutput =
| {
owner: AppOwner;
type: "onInit";
}
| {
error: | SqliteError
| TransferableError
| TimestampError
| ProtocolError
| SymmetricCryptoDecryptError;
type: "onError";
}
| {
onCompleteIds: ReadonlyArray<CallbackId>;
patches: ReadonlyArray<QueryPatches>;
tabId: Id;
type: "onChange";
}
| {
tabId?: Id;
type: "onReceive";
}
| {
onCompleteId: CallbackId;
reload: boolean;
type: "onReset";
}
| {
file: Uint8Array;
onCompleteId: CallbackId;
type: "onExport";
};
Defined in: packages/common/src/Evolu/Db.ts:158