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

Argument of type '"query"' is not assignable to parameter of type '"beforeExit"'.ts(2345) #5021

Open
jelmd opened this issue Jul 9, 2023 · 1 comment
Labels
docs Documentation creation, updates or corrections

Comments

@jelmd
Copy link

jelmd commented Jul 9, 2023

Unfortunately the query log statement shown on https://www.prisma.io/docs/concepts/components/prisma-client/working-with-prismaclient/logging#event-based-logging is not typesafe - ts rejects it with Argument of type '"query"' is not assignable to parameter of type '"beforeExit"'.ts(2345).

The page should include a variant, which can be used in typescript w/o any errors as well.

@jelmd jelmd added the docs Documentation creation, updates or corrections label Jul 9, 2023
@nikelborm
Copy link
Contributor

Might be fixed in prisma/prisma#24133

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation creation, updates or corrections
Projects
None yet
Development

No branches or pull requests

2 participants