-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
bug/2-confirmedBug has been reproduced and confirmed.Bug has been reproduced and confirmed.kind/bugA reported bug.A reported bug.tech/typescriptIssue for tech TypeScript.Issue for tech TypeScript.
Milestone
Description
Bug description
I used to be able to do:
import { PrismaClientKnownRequestError } from '@prisma/client';
if (!(err instanceof PrismaClientKnownRequestError)) {
...
}But now the classes are exported as types so we can't use them in instanceof.
Expected behavior
They should be exported as values.
Environment & setup
- Prisma version: 2.12.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bug/2-confirmedBug has been reproduced and confirmed.Bug has been reproduced and confirmed.kind/bugA reported bug.A reported bug.tech/typescriptIssue for tech TypeScript.Issue for tech TypeScript.