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

@ -9,7 +9,7 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable max-classes-per-file */
import { isNumber, map, omit } from 'lodash';
import { isNumber, map, omit, noop } from 'lodash';
import PQueue from 'p-queue';
import { v4 as getGuid } from 'uuid';
@ -276,9 +276,9 @@ class MessageReceiverInner extends EventTarget {
shutdown() {
if (this.socket) {
delete this.socket.onclose;
delete this.socket.onerror;
delete this.socket.onopen;
this.socket.onclose = noop;
this.socket.onerror = noop;
this.socket.onopen = noop;
this.socket = undefined;
}