Crobatair
PPrisma
•Created by Crobatair on 11/18/2024 in #help-and-questions
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 🥲
3 replies