io-ts

v0.9.3
TypeScript compatible runtime type system for IO validation
typescript validation inference types runtime

lint

tslint src/**/*.ts test/**/*.ts

typings-checker

typings-checker --allow-expect-error --project typings-checker/tsconfig.json typings-checker/index.ts

mocha

mocha -r ts-node/register test/*.ts

prettier

prettier --no-semi --single-quote --print-width 120 --parser typescript --list-different "{src,test}/**/*.ts"

fix-prettier

prettier --no-semi --single-quote --print-width 120 --parser typescript --write "{src,test,examples,exercises}/**/*.ts"

flow-copy-definition-files

cp src/*.js.flow lib

flow-test

flow status

flow-fix-prettier

prettier --no-semi --single-quote --print-width 120 --parser flow --write "{src,test,examples,exercises}/**/*.js.flow"

test

npm run prettier && npm run lint && npm run typings-checker && npm run mocha

clean

rm -rf lib/*

build

npm run clean && tsc && npm run flow-copy-definition-files

perf

node perf/index

Metadata

  • MIT
  • Whatever
  • Giulio Canti
  • released 12/23/2017

Downloads

Maintainers