style: remove some verbose codes (#2741)

(cherry picked from commit 34141958eb)
This commit is contained in:
LongYinan
2023-06-09 14:55:41 +08:00
committed by himself65
parent 9a22b81069
commit bb1a48a2b5
5 changed files with 45 additions and 79 deletions

View File

@@ -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]> {