typescript catch error any.
This commit is contained in:
parent
81006e02ed
commit
9be75c20ca
@ -154,7 +154,7 @@
|
||||
context: 'github/gollum',
|
||||
})
|
||||
this.$accessor.client.setAbout(res2.data)
|
||||
} catch (err) {
|
||||
} catch (err: any) {
|
||||
console.error(err)
|
||||
} finally {
|
||||
this.loading = false
|
||||
|
@ -490,7 +490,7 @@
|
||||
try {
|
||||
await this._video.play()
|
||||
this.onResise()
|
||||
} catch (err) {
|
||||
} catch (err: any) {
|
||||
this.$log.error(err)
|
||||
}
|
||||
}
|
||||
@ -577,7 +577,7 @@
|
||||
this.$accessor.remote.setClipboard(text)
|
||||
this.$accessor.remote.sendClipboard(text)
|
||||
}
|
||||
} catch (err) {
|
||||
} catch (err: any) {
|
||||
this.$log.error(err)
|
||||
}
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ export abstract class BaseClient extends EventEmitter<BaseEvents> {
|
||||
this._ws.onerror = (event) => this.onError.bind(this)
|
||||
this._ws.onclose = (event) => this.onDisconnected.bind(this, new Error('websocket closed'))
|
||||
this._timeout = window.setTimeout(this.onTimeout.bind(this), 15000)
|
||||
} catch (err) {
|
||||
} catch (err: any) {
|
||||
this.onDisconnected(err)
|
||||
}
|
||||
}
|
||||
@ -269,7 +269,7 @@ export abstract class BaseClient extends EventEmitter<BaseEvents> {
|
||||
displayname: this._displayname,
|
||||
}),
|
||||
)
|
||||
} catch (err) {
|
||||
} catch (err: any) {
|
||||
this.emit('error', err)
|
||||
}
|
||||
}
|
||||
|
@ -66,7 +66,7 @@ export const actions = actionTree(
|
||||
}
|
||||
accessor.emoji.setList(req.data.list)
|
||||
accessor.emoji.setKeywords(req.data.keywords)
|
||||
} catch (err) {
|
||||
} catch (err: any) {
|
||||
console.error(err)
|
||||
}
|
||||
},
|
||||
|
@ -74,7 +74,7 @@ export const actions = actionTree(
|
||||
try {
|
||||
const req = await $http.get<KeyboardLayouts>('keyboard_layouts.json')
|
||||
accessor.settings.setKeyboardLayoutsList(req.data)
|
||||
} catch (err) {
|
||||
} catch (err: any) {
|
||||
console.error(err)
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user