You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When passing a schema to omit, pick or partial, the resulting schema is always a struct object.()
It would be great to return the schema's type so that when passing a type(), the resulting schema is also a type().
Example:
constTodoSchema=type({id: string(),message: string()})constCreateTodoSchema=omit(TodoSchema,['id'])// CreateTodoSchema's is a struct 'object()' while it would great to keep it as a 'type' because it's input is.
I am willing to make the relevant PR if you want.
The text was updated successfully, but these errors were encountered:
When passing a schema to
omit
,pick
orpartial
, the resulting schema is always a structobject.()
It would be great to return the schema's type so that when passing a
type()
, the resulting schema is also atype()
.Example:
I am willing to make the relevant PR if you want.
The text was updated successfully, but these errors were encountered: