Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support prisma extensions #4291

Open
papsavas opened this issue Jan 24, 2024 · 5 comments
Open

support prisma extensions #4291

papsavas opened this issue Jan 24, 2024 · 5 comments

Comments

@papsavas
Copy link
Contributor

papsavas commented Jan 24, 2024

What do you want and why?

handle $extends() prisma function (currently errors to TypeError: (intermediate value).$extends is not a function

  • The types of the enhanced PrismaClient break when extensions are added.

image
image

(Correct) DB types using new PrismaClient() without blitz enhancement (cannot be used due to this):

image

Additional Context

The error of using

const db = new EnhancedPrisma().$extends(...)

image

@siddhsuresh
Copy link
Member

siddhsuresh commented Jan 24, 2024

hey @papsavas, thanks for the issue, can you please complete the issue template? Also can you provide an example of an extension failing for you with the typescript error.

@Syarx
Copy link

Syarx commented Jan 24, 2024

related to #4251

@papsavas
Copy link
Contributor Author

@siddhsuresh i've added as much context as i could. A specified example is not necessary due to the global scope that the error holds, as also mentioned in #4251

@siddhsuresh
Copy link
Member

siddhsuresh commented Jan 25, 2024

thanks @papsavas, taking a look now

@Syarx
Copy link

Syarx commented Mar 5, 2024

any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants