typescript error when spreading `Parameters<F>`
This is the narrowed down code from my actual use case. function wrapMe<F extends (…args: any) => any>( f: F, ): (…args: Parameters<F>) => ReturnType<F> { return function(…args: Parameters<F>): ReturnType<F> { return f(…args); // ^^^^ // Type ‘Parameters<F>’ must have a ‘[Symbol.iterator]()’ method that returns an iterator. [2488] } } Why is this a typescript… Read More typescript error when spreading `Parameters<F>`