wasp icon indicating copy to clipboard operation
wasp copied to clipboard

Fix Full-stack type safety type names

Open sodic opened this issue 1 year ago • 3 comments

#1544 bumped the version of Prisma from 4.12 to 4.16.

This change introduced a regression in our full-stack type safety DX. The functionality is still there, but type names are far less ergonomic.

We should do our best to find a way to again show meaningful type names again, and also address other potential changes between Prisma 4.12 and 4.16.

Before

image

After

image

sodic avatar Nov 10 '23 15:11 sodic

This will most likely be solved by upgrading to Prisma 5.X according to this fix: https://github.com/prisma/prisma/pull/20319

infomiho avatar Mar 21 '24 13:03 infomiho

One extra thing to consider when we solve this: Prisma started branding their model types so our branded _Entity types are no longer needed.

infomiho avatar Jun 06 '24 11:06 infomiho

Also related: generating variations of Prisma entity types: https://discord.com/channels/686873244791210014/1246062324792557638/1246062324792557638

sodic avatar Jun 06 '24 12:06 sodic