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

@@ -326,7 +326,7 @@ export class Server extends EventEmitter {
let id
try {
id = this.generateId(req)
} catch (e) {
} catch (error: any) {
console.debug("error while generating an id")
this.emit("connection_error", {
req,
@@ -334,7 +334,7 @@ export class Server extends EventEmitter {
message: Server.errorMessages[Server.errors.BAD_REQUEST],
context: {
name: "ID_GENERATION_ERROR",
error: e
error
}
})
closeConnection(Server.errors.BAD_REQUEST)
@@ -360,7 +360,7 @@ export class Server extends EventEmitter {
} else {
transport.supportsBinary = true
}
} catch (e) {
} catch (e: any) {
console.ex(e)
this.emit("connection_error", {
req,