seasonedcc / composable-functions

Types and functions to make composition easy and safe
MIT License
649 stars 13 forks source link

chore: Change ParserSchema type to be more conformant to both Zod and Arktype #151

Closed gustavoguichard closed 2 months ago

gustavoguichard commented 2 months ago

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 .