Incorrect type inferred
Hello,
I’m running into an issue with Prisma and would appreciate some help
I’m trying to create a generic function for paginating my models with a fully generic type. Here’s the function:
The problem is that the type of items ends up as any, and I can’t seem to get the correct type.
For comparison, my findManyWhere function works perfectly and returns the correct type:
Do you have any suggestions on how to correctly type items in this context?
Thanks!
3 Replies
You chose to debug with a human. They'll tinker with your query soon. If you get curious meanwhile, hop into
#ask-ai for a quick spin!
Did you find a solution to this or are you still running into this?