Closed Code-Hex closed 2 years ago
No, there is no extend API.
Since schema's should be static for best performance, it was not deemed an important feature.
However you can manipulate schemas by using omit
and intersections.
Myzod aims to be a simpler more performant version of zod not to be a 1:1 reimplementation.
It was very useful when zod was not performant enough to be viable on the server, but I believe that has changed recently.
zod has been supported extend API. Is it possible like this in myzod also?