0.0.3 • Published 2 years ago

unroll-types v0.0.3

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

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-types

or use npx to execute.

Command Line

unroll-types my-file.ts

Will output ./unrolled.d.ts

unroll-types my-file.ts --include ./src

Will include all src directory for the typescript compiler host to resolve relative imports.

unroll-types my-file.ts --tsconfig tsconfig.json

Will pass the tsconfig.json file to the compiler

unroll-types my-file.js

Will work with .js files out of the box

unroll-types my-file.ts --include-as ./other my-alias

Will add my-alias to paths for module name resolution

unroll-types my-file.ts --out types.d.ts

Changes the output file to ./types.d.ts

unroll-types --help

Shows help text

unroll-types my-file.ts --ts_checkJs true

Pass additional ts compiler options using ts_*

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago