Type '"findUniqueOrThrow"' is not assignable to type 'PrismaAction'
#17470
Labels
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
kind/bug
A reported bug.
team/client
Issue for team Client.
tech/typescript
Issue for tech TypeScript.
topic: client types
Types in Prisma Client
Milestone
Bug description
Hey Guys,
I'm using the
Prisma.MiddlewareParams
type which contains an attributeaction
of type PrismaAction. Which is missing a couple of actions that actually existsfindUniqueOrThrow
andfindFirstOrThrow
Because of that we get a ts error when using one of those missing types:
How to reproduce
Just add this code in a ts file and you'll see the error
Expected behavior
There shouldn't be a ts error because those actions do exists.
Prisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: