this module is available for nodejs
making this module available for deno. Deno is a javascript runtime similar to node but with different tooling, different runtime, and a different module system.
use denoify to package a deno compatible version of io-ts. io-ts only has a single dependency (fp-ts) so porting this module isnt terribly complicated as far as denoify is concerned. Glueing the two pieces together will take a bit more research than I have done so far (I could stand to understand denoify a little better, and I need to understand the build system of io-ts a little better) but it should be as simple as adding the denoify and adding some configuratin to package.json.
This would impact developers using deno as a nodejs alternative. There are currently only a few limited options for schema validation in deno https://deno.land/x?query=schema
the alternative is to roll my own schema or extend one of the existing schemas. Most other libraries do not have good support for unions and recursive schemas.
| Software | Version(s) |
| ---------- | ---------- |
| io-ts | N/a |
| fp-ts | N/a |
| TypeScript | N/a |
@andykais If you're planning to do this (or to anyone), it may be better to port support to fp-ts first.
Most helpful comment
@andykais If you're planning to do this (or to anyone), it may be better to port support to
fp-tsfirst.