@irysius/typings-util
v0.2.0
Published
Utility functions to help assemble TypeScript declarations
Downloads
48
Readme
@irysius/typings-util
Utility functions to help assemble TypeScript declarations.
Usage
Make sure your project can generate loose declaration files using
tsc -d
.Install this package:
npm install --save-dev @iryius/typings-util
Import the main function in your task running script of choice:
var generateTypes = require('@irysius/typings-util');
If your generated types are in the
types
folder, if you want your declarations to be rooted against@irysius/custom-lib
, and if you want the concatenated result to beindex.d.ts
:let promise = generateTypes('./types', '@irysius/custom-lib', './index.d.ts');