Replies: 1 comment 2 replies
-
Good idea. We should add a method for this. Are you interested in creating a PR? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to be able to define explicit readonly arrays like in Zod: https://zod.dev/?id=readonly
This gives error:
However, it does not if I remove
satisifes Source
, which I would like to keep for type safety.Minimal repo:
https://stackblitz.com/edit/typescript-4synpa?file=schemas%2Fschemas.ts
Beta Was this translation helpful? Give feedback.
All reactions