Prisma Client: fixing type name clashes from generated client #19811
Labels
kind/improvement
An improvement to existing feature and code.
team/client
Issue for team Client.
tech/typescript
Issue for tech TypeScript.
topic: client types
Types in Prisma Client
topic: prisma5
topic: type-clash
topic: typescript
Milestone
Internal Slack 馃У
Internal Notion doc
During type generation, we create many different TS types based on a schema. Sometimes, generated type clashes with some other model type or internal helper type we are using. In that case, generated client usually becomes unusable.
List of open issues with type-clash) topic label
$Model
namespace for user-defined models, enums and compositesNotes
Prisma.SomeModelArgs
is now available asPrisma.$SomeModel.Args
as well. If we decide that we want to recommend it (since it would never conflict with anything) we might specify that too and deprecate the old thing.The text was updated successfully, but these errors were encountered: