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
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(