Io-ts: Deno support?

Created on 29 Oct 2020  路  1Comment  路  Source: gcanti/io-ts

馃殌 Feature request

Current Behavior

this module is available for nodejs

Desired Behavior

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.

Suggested Solution

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.

Who does this impact? Who is this for?

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

Describe alternatives you've considered

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.

Additional context

Your environment

| Software | Version(s) |
| ---------- | ---------- |
| io-ts | N/a |
| fp-ts | N/a |
| TypeScript | N/a |

Most helpful comment

@andykais If you're planning to do this (or to anyone), it may be better to port support to fp-ts first.

>All comments

@andykais If you're planning to do this (or to anyone), it may be better to port support to fp-ts first.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Kinrany picture Kinrany  路  5Comments

xogeny picture xogeny  路  5Comments

spacejack picture spacejack  路  3Comments

gunzip picture gunzip  路  9Comments

Picoseconds picture Picoseconds  路  3Comments