Readonly
_defReadonly
_inputReadonly
_outputReadonly
_typeA wrapping type that parses as-is like its inner type, but forbids mobx-zod-form from creating fields or encoding/decoding for inner fields. In other words, the inner value will be treated as if it is an atomic value.
This means you can deal with the object with your custom logics.
Extend the form meta of the type. You can retrieve it later with getFormMeta
.
Sorry we cannot better type the returning type,
which means you'll get optional properties when you use them,
because zod
does not give us a chance to use generic here.
Optional
message: string | Partial<Omit<ZodCustomIssue, "code">> | ((arg) => Partial<Omit<ZodCustomIssue, "code">>)Optional
message: string | Partial<Omit<ZodCustomIssue, "code">> | ((arg) => Partial<Omit<ZodCustomIssue, "code">>)Static
create
Alias of safeParseAsync