By making the error.issues readonly we are following good practices in general.
By swapping (string | number) for PropertyKey which includes (string | number | symbol) we not only will conform to Zod issue but also to Arktype's path definition.
It simplifies the adaptor as suggested by @ssalbdivad therefore simplifying the ark example: #150 .
By making the error.issues
readonly
we are following good practices in general. By swapping(string | number)
forPropertyKey
which includes(string | number | symbol)
we not only will conform to Zod issue but also to Arktype's path definition.It simplifies the adaptor as suggested by @ssalbdivad therefore simplifying the ark example: #150 .