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.
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.