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
Why ts-to-zod is not adding .readonly() for attributes or objects? I noticed that tests are now expecting that it fallbacks to the default type, why so?
Is there some issues with readonly? Zod objects themselves seems to make it trivial to use.
I also noticed that issue with single property case. I was thinking that could that readonly() (Object.freeze() I think) applied to object properties which are wrapped using Readonly<>?
I would think that any improvement into this is good, even if that cannot be implemented fully until zod fixes its issues.
Bug description
Why ts-to-zod is not adding
.readonly()
for attributes or objects? I noticed that tests are now expecting that it fallbacks to the default type, why so?Is there some issues with readonly? Zod objects themselves seems to make it trivial to use.
Input
Case 1
Case 2
Expected output
Case 1
Case 2
Actual output
Case 1
Case 2
The text was updated successfully, but these errors were encountered: