david-plugge / typed-formdata

MIT License
3 stars 1 forks source link

Add support for coercion of primitives #9

Open lorefnon opened 1 year ago

lorefnon commented 1 year ago

This is the implementation of what I was proposing in https://github.com/david-plugge/typed-formdata/issues/8

This attempts to handle only coercions without going into full blown form validation.

Because the core library supports only primitive coercions, it does not need additional dependencies. It does however support passing in external codecs which can support additional coercions.

Let me know if you think this fits into the scope of this library.