maketypes

v1.1.2
Make TypeScript types and proxy objects from example JSON objects. Can use proxy objects to dynamically type check JSON at runtime.
TypeScript types JSON synthesis

prepublish

tsc

generate:test

node ./test/common/generateSamples.js

build:test

tsc -p test/tsconfig.json

mocha

mocha

istanbul

istanbul cover ./test/common/generateSamples.js

coverage

npm-run-all --serial prepublish istanbul

coveralls

cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js

travis

npm-run-all --serial test coverage coveralls

test

npm-run-all --serial prepublish generate:test build:test mocha
npm i maketypes

Metadata

  • MIT
  • Whatever
  • John Vilk
  • released 5/12/2017

Downloads

Maintainers