0.1.3 • Published 2 years ago

@field123/ep-ts-converting v0.1.3

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

@field123/ep-ts-converting

Install

yarn add -D @field123/ep-ts-converting @field123/io-ts-excess fp-ts io-ts

Usage

npx ep-ts-converting <source> <dest>
npx ep-ts-converting ./types/animals.ts ./output
npx ep-ts-converting ./types/animals.ts ./output --exact --tests --testsDir=./output/tests
KeyCLI optDefaultDescription
exact--exactfalseShould the output decoders fail if provided extra properties?
tests--testsfalseScaffold out tests for the generated decoders
testsDir--tests-dir \<dir>\<dest>What should the output directory for the scaffolded tests be?
help-h, --helpn/adisplay help for command