I encountered the same issue and found a solution that worked for me. The fix involved adjusting the argument structure by consolidating them into a single object. Here's an example:
Original code:
"test:emit": (arg1: number, arg2: string) => void;
Updated code:
"test:emit": ({ arg1, arg2 }: { arg1: number, arg2: string }) => void;
I hope this helps anyone facing a similar problem.