prisma / prisma-examples

🚀 Ready-to-run Prisma example projects

Home Page:https://www.prisma.io/docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Infer and explicitly declare types for client extensions

halbano opened this issue · comments

When declaring Prisma client extensions, the types are not inferred properly.

The extensions, when being called, are showing typescript errors related with the no detection of the declared extensions:

Screen Shot 2022-12-22 at 22 50 39

Did folks work on anything similar and were able to type all this correctly? Is there any example of how this should work?

Hi @halbano,

Thanks for reporting the issue. I recommend you post/ transfer your issue to the https://github.com/prisma/prisma repo with a snippet of your extension and the type error you're running into. 🙂