Upgrade TypeScript to the latest version, v4.1.3
This commit is contained in:
parent
38ab92da5d
commit
dd0ea6b3fe
10 changed files with 94 additions and 88 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue