effect
effect copied to clipboard
Export all parser fns at once from a Schema
What is the problem this feature would solve?
It's pretty common that you will need to use multiple parser fns(parse, encode, decode) for a given schema. It would be useful to have a single function that generates all of the parser functions at once.
What is the feature you are proposing to solve the problem?
const { parseOption, encode, is, validate, validateOption, /* etc... */ } = Parser.compile(schema)
What alternatives have you considered?
No response