flow-io icon indicating copy to clipboard operation
flow-io copied to clipboard

Updated Library for Flow

Open orlandoc01 opened this issue 6 years ago • 3 comments
trafficstars

The ideas behind this library and the more mature io-ts can be really valuable for anyone working on a Flow project. However, I tried using io-ts for a bit on some internal projects with a custom flow-typed file (since flow-io is deprecated) but it ended up being pretty difficult. Some of the mechanics behind io-ts are heavily dependent on Typescript's semantics, and trying to get it to play well with Flow was too difficult. As a result, I've "forked" the work in io-ts and setup a new repo/NPM package located at io-flow-types. The intention there is that this library can be maintained as one specifically built for Flow in mind.

For now, this new library's API is still pretty similar to io-ts because the core idea is the same, although that might change as I continue to work with it. I just wanted to post this here in case any other maintainer/collaborator/watcher of this repo is still interested in having "Runtime Types" that are built for Flow projects. If so, your feedback and/or collaboration is welcome at io-flow-types.

orlandoc01 avatar Jan 23 '19 02:01 orlandoc01

Also just wanted to say thanks to @gcanti for io-ts, it's a really cool concept. Wish you had more time to work on it for Flow too haha :)

orlandoc01 avatar Jan 23 '19 02:01 orlandoc01

@orlandoc01 we could link your project in the README, feel free to open a PR

gcanti avatar Jan 23 '19 06:01 gcanti

That would be great, here's the PR

orlandoc01 avatar Jan 23 '19 08:01 orlandoc01