The typescript is mainly used by my front. My backend have a class to convert my front object to Prisma typescript object. My problem is I don't know how to convert from my typescript enum to the prisma enum, and transform the prisma enum to my enum.
The only solution that doesn't trigger an typescript error (not tested tho) is:
// Metric is my custom enum, PChallengeMetric is the Prisma enummetric as unknown as keyof typeof PChallengeMetric,
// Metric is my custom enum, PChallengeMetric is the Prisma enummetric as unknown as keyof typeof PChallengeMetric,