Mensen hebben allemaal hacky work arounds gevonden maar het leek me beter om dat niet te doen. Dus hier is de fix. Nadeel is dat als je ooit een product type toevoegt hij niet automatisch meer in de UI komt. Als je een product type verwijderd zal TS wel gaan klagen dus dat is top.
Fixes #324
Het probleem is dat je een enum gegenereerd door prisma niet kan importen. Zie https://github.com/prisma/prisma/issues/12504
Mensen hebben allemaal hacky work arounds gevonden maar het leek me beter om dat niet te doen. Dus hier is de fix. Nadeel is dat als je ooit een product type toevoegt hij niet automatisch meer in de UI komt. Als je een product type verwijderd zal TS wel gaan klagen dus dat is top.