You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const throttledFetch = <R>() => pThrottle<Parameters<typeof got>, R>(got, REQ_PER_10_SEC, RATE_INTERVAL); //error here. Argument of type 'Got' is not assignable to parameter of type '(options: Options) => R | PromiseLike<R>'
Maybe I missed something, but the function returned by throttle is not type-compatible with the original, which seems kinda wrong.
I'm trying to do something like this:
Is there something I missed, like a providing types for pThrottle or is this a bug?
Thanks for helping.
The text was updated successfully, but these errors were encountered: