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!
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!