Michael Jay
07/29/2022, 12:38 PMexport const GroupInvitationStatus: {
Pending: 'Pending',
Accepted: 'Accepted',
Declined: 'Declined'
};
export type GroupInvitationStatus = (typeof GroupInvitationStatus)[keyof typeof GroupInvitationStatus]Austin
07/29/2022, 7:02 PMconst and type versions of enums, so you should be safe to just use what Prisma generates.
There is no issue with exporting two things of the same name as long as one of them is a type and one is a value.Michael Jay
07/29/2022, 7:17 PMconst is essentially the enum I was looking for - so I am just using that one. It's really nice.