Upgrade TypeScript to the latest version, v4.1.3

This commit is contained in:
Evan Hahn 2020-12-18 11:09:31 -06:00 committed by Scott Nonnenberg
parent 38ab92da5d
commit dd0ea6b3fe
10 changed files with 94 additions and 88 deletions

View file

@ -32,6 +32,7 @@ import {
} from './storageRecordOps';
import { ConversationModel } from '../models/conversations';
import { storageJobQueue } from '../util/JobQueue';
import { sleep } from '../util/sleep';
const {
eraseStorageServiceStateFromConversations,
@ -66,11 +67,7 @@ const BACKOFF: BackoffType = {
function backOff(count: number) {
const ms = BACKOFF[count] || BACKOFF.max;
return new Promise(resolve => {
setTimeout(() => {
resolve();
}, ms);
});
return sleep(ms);
}
type UnknownRecord = {