1.1.0 • Published 9 years ago
@gongt/dts-concat v1.1.0
typescript module declaration linker
this program parse .d.ts files generated by tsc --declaration=true
to a single index.d.ts (must save by yourself)
if your module's consumer are using typescript.
with this file, they can install your module
by npm install your-module
, and use it
with import {xxx} from "your-module";
without any other configure.
install
npm install -g @gongt/dts-concat
usage
generate file from a generated declaration file:
dts-concat "your-module-name" "./dist/server.d.ts" > ./index.d.ts
read module name & main script from package.json from current dir:
dts-concat . > ./index.d.ts