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

[Error] Can not transpile , type definition error for PrismaClient at delegate.d.ts #59

Open
Gnagano opened this issue Dec 12, 2022 · 2 comments

Comments

@Gnagano
Copy link

Gnagano commented Dec 12, 2022

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?

@Quramy
Copy link
Owner

Quramy commented Dec 14, 2022

To work around this, setskipLibCheck true in your tsconfig.json .

@Gnagano
Copy link
Author

Gnagano commented Dec 15, 2022

Thank you for your advice. I'll do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants