Remove several @ts-ignores
This commit is contained in:
parent
e0bd9f6958
commit
770c80b9ee
7 changed files with 11 additions and 36 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue