Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    Do you have a minimal reproducible example for this? (e.g. on the typescript playground or the like? And if you do, don't replace your code, just add the link to that in your post). But in the absence of that: fn was declared as taking 1 argument, of type TParams, on line 2. But on line 12 you're not passing it 1 argument of type TParams. Commented Mar 21, 2024 at 0:50
  • On line 2: fn: (a: TParams) => fn: (...a: TParams) Commented Mar 21, 2024 at 0:58
  • @Mike'Pomax'Kamermans ahhh i changed it to fn: (...a: TParams) => and that resolved it! thank you :) Commented Mar 21, 2024 at 1:02