Slim Shady
Slim Shady
PPrisma
Created by Slim Shady on 9/8/2024 in #help-and-questions
accessing prisma generated enums on browser client
in my prisma schema I have an enum called Sizes with the values of s, m, l, xl i can access that enum in on the server by importing import { Sizes } from "@prisma/client"; but whenever I import the same thing in a svelte file, the Sizes become undefined I temporarily fixed it by copying the values of the prisma generated Sizes but the issue is, if the enum is updated, then i need to copy over the values again
4 replies