Vithrax
Explore posts from serversDTDrizzle Team
•Created by Vithrax on 2/11/2024 in #help
createInsertSchema
Hi,
I have small issue with createInsertSchema function. Optional columns can have value or be undefined or null - and null type conflicts with HTMLInputElement attributes. I can't find a way to override the type to be value | undefined.
Do you have any suggestions on how to tackle this? Code below
NewRecipe type is
Just for clarity, i want to change, for example, description to be string | undefined.
3 replies