RaikuGg 🧑💻
RaikuGg 🧑💻
DTDrizzle Team
Created by rykuno on 7/2/2023 in #help
PGEnum -> Typescript Enum
Found any solution for this? Currently I am doing -
export const teamMemberStatusEnum = pgEnum('team_member_status', [
'Active',
'Inactive',
'Invited',
]);
export const TeamMemberStatus = z.enum(teamMemberStatusEnum.enumValues).Enum;
export const teamMemberStatusEnum = pgEnum('team_member_status', [
'Active',
'Inactive',
'Invited',
]);
export const TeamMemberStatus = z.enum(teamMemberStatusEnum.enumValues).Enum;
5 replies