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

Valid type DynamicClientExtensionThis type from using new PrismaClient().$extends(...) not allowed #110

Open
zrosenbauer opened this issue Mar 8, 2024 · 0 comments
Labels
semver: minor Added functionality in a backwards compatible manner. type: bugfix Something is broke but not on fire.

Comments

@zrosenbauer
Copy link
Member

Description

Currently the type for client (when overriding the client) only allows the base PrismaClient. When creating a client extension the type changes due to the additional types added by the extension. We need to support this functionality.

Reproduction

  • Create a client extension
  • Use the new client as the client config property
example-error

Environment

@zrosenbauer zrosenbauer added type: bugfix Something is broke but not on fire. semver: minor Added functionality in a backwards compatible manner. labels Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver: minor Added functionality in a backwards compatible manner. type: bugfix Something is broke but not on fire.
Development

No branches or pull requests

1 participant