effect icon indicating copy to clipboard operation
effect copied to clipboard

Export all parser fns at once from a Schema

Open jessekelly881 opened this issue 2 years ago • 0 comments

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

jessekelly881 avatar Oct 18 '23 14:10 jessekelly881