style: remove some verbose codes (#2741)

This commit is contained in:
LongYinan
2023-06-09 14:55:41 +08:00
committed by GitHub
parent c194cff0bd
commit 34141958eb
5 changed files with 45 additions and 79 deletions
@@ -27,7 +27,6 @@ async function dispatch<
>(
namespace: T,
functionName: F,
// @ts-expect-error
...args: Parameters<WithoutFirstParameter<MainIPCHandlerMap[T][F]>>
): // @ts-expect-error
ReturnType<MainIPCHandlerMap[T][F]> {