Tag : generics

I have a wrapper function that recieves an async generic function and runs it, but it doesn’t honor the return type. In this case, the generic function returns a type of response and the wrapper function has a return type annotation that indicates the return of te result of the generic inner function. The code runs and works well but typescript yells that it cannot be ass..

Read more