0.0.3 • Published 3 years ago
unroll-types v0.0.3
Unroll Types
Extract types similar to api-extractor. Made specifically for titan-reactor api extraction as it has special requirements. Made available publicly in case it is useful. Unroll types is a bit of a misnomer but whatever.
Considered alpha and subject to change without notice.
Install
npm install -g unroll-typesor use npx to execute.
Command Line
unroll-types my-file.tsWill output
./unrolled.d.ts
unroll-types my-file.ts --include ./srcWill include all src directory for the typescript compiler host to resolve relative imports.
unroll-types my-file.ts --tsconfig tsconfig.jsonWill pass the tsconfig.json file to the compiler
unroll-types my-file.jsWill work with .js files out of the box
unroll-types my-file.ts --include-as ./other my-aliasWill add
my-aliasto paths for module name resolution
unroll-types my-file.ts --out types.d.tsChanges the output file to
./types.d.ts
unroll-types --helpShows help text
unroll-types my-file.ts --ts_checkJs truePass additional ts compiler options using
ts_*