Remove several @ts-ignores

This commit is contained in:
Evan Hahn 2021-12-16 19:14:21 -06:00 committed by GitHub
parent e0bd9f6958
commit 770c80b9ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 11 additions and 36 deletions

View file

@ -581,9 +581,7 @@ function makeChannel(fnName: string) {
try {
// Ignoring this error TS2556: Expected 3 arguments, but got 0 or more.
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
return await Server[serverFnName](...args);
return await (Server[serverFnName] as Function)(...args);
} catch (error) {
if (isCorruptionError(error)) {
log.error(