PGEnum -> Typescript Enum
Hey there. Is there any convenient way people have found to conveniently turn a pgEnum into a typescript enum such as below? Currently I'm creating DTO's but i figured coupling them would be much easier :). I figure ZOD might come into play but we are utilizing NestJS w/ class-validator atm.
4 Replies
Hello! Did you ever find a solution for this?
I'd try something like this
Found any solution for this? Currently I am doing -
im doing like this too