79116198

Date: 2024-10-23 01:50:43
Score: 1
Natty:
Report link

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.

Reasons:
  • Whitelisted phrase (-1): hope this helps
  • Whitelisted phrase (-1): worked for me
  • Has code block (-0.5):
  • Me too answer (2.5): facing a similar problem
  • Low reputation (1):
Posted by: Red Killer