Omit properties when using InferInsertModel and InferSelectModel to create Type defintion
Is there a way to omit certain properties entirely rather than making them optional?
2 Replies
Can't you just use TypeScripts Omit? Otherwise, could you explain further?
Yes, but I was thinking.. Maybe something like readOnly() and writeOnly() when creating schema, which can be consumed when drawing those inferences.