API reference / @evolu/common / Evolu/Internal / DbWorkerOutput

Type Alias: DbWorkerOutput

type DbWorkerOutput =
  | {
      appOwner: AppOwner;
      isFirst: boolean;
      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:151

Was this page helpful?