Naming a model Promise
breaks types for PrismaPromise
#17542
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/client
Issue for team Client.
tech/typescript
Issue for tech TypeScript.
topic: client types
Types in Prisma Client
topic: prisma-client
topic: type-clash
Milestone
Bug description
This started happening since Prisma 4.9.0, seemingly since #17265.
How to reproduce
Clone the linked reproduction repository, generate the Prisma schema, and open
index.ts
in VSCode.await
will not work on thefindMany
query and trying to callmap
on the expected awaited array ofcustomers
will give an error.Expected behavior
No response
Prisma information
Reproduction repository
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: