Move SignalProtocolStore to TypeScript

This commit is contained in:
Scott Nonnenberg 2021-02-26 15:42:45 -08:00 committed by Josh Perez
parent 5de4babc0d
commit 7e629edd21
14 changed files with 1291 additions and 1066 deletions

View file

@ -1226,7 +1226,7 @@ async function updateUnprocessedsWithData(array: Array<UnprocessedType>) {
await channels.updateUnprocessedsWithData(array);
}
async function removeUnprocessed(id: string) {
async function removeUnprocessed(id: string | Array<string>) {
await channels.removeUnprocessed(id);
}

View file

@ -129,7 +129,7 @@ export type DataInterface = {
arrayOfUnprocessed: Array<UnprocessedType>,
options?: { forceSave?: boolean }
) => Promise<void>;
removeUnprocessed: (id: string) => Promise<void>;
removeUnprocessed: (id: string | Array<string>) => Promise<void>;
removeAllUnprocessed: () => Promise<void>;
getNextAttachmentDownloadJobs: (

View file

@ -3410,7 +3410,7 @@ async function getAllUnprocessed() {
return rows;
}
async function removeUnprocessed(id: string) {
async function removeUnprocessed(id: string | Array<string>) {
const db = getInstance();
if (!Array.isArray(id)) {