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

Runtime type system for IO decoding/encoding

build status dependency status npm downloads

  • Installation
  • Usage
    • Stable features
    • Experimental features (version 2.2+)

Installation

To install the stable version

npm i io-ts fp-ts

Note. fp-ts is a peer dependency for io-ts

Usage

Stable features

  • index.ts module

Experimental modules (version 2.2+)

Experimental modules (*) are published in order to get early feedback from the community, see these tracking issues for further discussions and enhancements.

The experimental modules are independent and backward-incompatible with stable ones.

  • Decoder.ts module
  • Encoder.ts module
  • Codec.ts module
  • Eq.ts module
  • Schema.ts module (advanced feature)

(*) A feature tagged as Experimental is in a high state of flux, you're at risk of it changing without notice.