jest-prisma
jest-prisma copied to clipboard
[Error] Can not transpile , type definition error for PrismaClient at delegate.d.ts
When I try to use this library, I got transplile error at delegate.d.ts.
This seems to be wrong type definition
getClient(): PrismaClient<Prisma.PrismaClientOptions, never, Prisma.RejectOnNotFound | Prisma.RejectPerOperation | undefined, {
result: {};
model: {};
query: {};
client: {};
}> | undefined;
Error Message
Generic type 'PrismaClient<T, U, GlobalReject>' requires between 0 and 3 type arguments.
As you can see, the definition has one more extra arguments...
Do I have any options to remove error?
To work around this, setskipLibCheck
true in your tsconfig.json .
Thank you for your advice. I'll do it.