feat: update typescript version

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2021-12-26 01:21:06 +08:00
parent 72173b4778
commit 5ed61829e1
68 changed files with 234 additions and 161 deletions

View File

@@ -191,8 +191,8 @@ export class Socket extends Emitter {
// Retry with the next transport if the transport is disabled (jsonp: false)
try {
transport = this.createTransport(transport)
} catch (e) {
debug("error while creating transport: %s", e)
} catch (error: any) {
debug("error while creating transport: %s", error)
this.transports.shift()
this.open()
return

View File

@@ -160,7 +160,7 @@ export class WS extends Transport {
} else {
this.ws.send(data, opts)
}
} catch (e) {
} catch (error: any) {
debug("websocket closed before onclose event")
}