@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
Key |
CLI opt |
Default |
Description |
exact |
--exact |
false |
Should the output decoders fail if provided extra properties? |
tests |
--tests |
false |
Scaffold out tests for the generated decoders |
testsDir |
--tests-dir <dir> |
<dest> |
What should the output directory for the scaffolded tests be? |
help |
-h, --help |
n/a |
display help for command |