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

@@ -35,7 +35,7 @@ export abstract class Transport extends EventEmitter {
console.debug(`client Transport connect`)
try {
this.doConnect()
} catch (error) {
} catch (error: any) {
console.ex(error)
this.onerror({ error })
}
@@ -44,7 +44,7 @@ export abstract class Transport extends EventEmitter {
send(text: string) {
try {
this.doSend(text)
} catch (error) {
} catch (error: any) {
this.onerror({ error })
}
}
@@ -55,7 +55,7 @@ export abstract class Transport extends EventEmitter {
try {
this.onclose({ code, reason })
this.doClose(code, reason)
} catch (error) {
} catch (error: any) {
this.onerror({ error })
} finally {
this.removeAllListeners()