Broken JsDoc on prisma Upgrade from 4 to 5.22
I just upgraded the Prisma version from 4 to 5.22 and noticed that my IDE no longer recognizes some typedefs I was using.
I used to create a Typedef file to use the Prisma types in JSdoc.
- Prisma version: 5.22
- NodeJs 20
- Prisma provider -> prisma-client-js
- Previews -> prismaSchemaFolder
The import was the following:
And by returning the methods with the JSdoc I could hover over the variables.
Now, the IDE shows the returned types as follows:
Is there a way to fix the jsdoc, and return the objects as:
Thanks for the help 🥲
1 Reply
Hi @Crobatair 👋
Can you try with prisma versions
4.16.2
and 5.0.0
and see if it is breaking for you starting from version 5.0.0
?
I haven't encountered any open any GitHub Issues reporting this same behaviour.
If it breaks starting from version 5.0.0 then it would imply that maybe some internal change we did could have triggered this.