dts-helper
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

TypeScript 类型声明工具

API

const dts = require('dts-helper');
 
dts.emit(opts).catch(err => {
  // TODO
});

CLI

Usage: dts [options]
 
Options:
  -V, --version                  output the version number
  -d, --out-dir <directory>      emit output declaration file to the specified directory
  -f, --out-file [file]          concatenate and emit output to single file. (default: false)
  -m, --module [prefix]          specifies the module prefix name. (default: true)
  -E, --noEmit                   do not emit output (default: false)
  -e, --export-equals            export Equals (default: false)
  -C, --no-comment               do not emit comments to output
  -V, --verbose                  display detailed log information (default: false)
  -i, --include <items>          specifies the file to include (default: [])
  -e, --exclude <items>          specifies the file to exclude (default: [])
  -L, --line-break <CRLF|CR|LF>  sets the paragraph newline character
  -I, --indent <TAB|SPACE>[NUM]  sets the line indent,eg TAB(or TAB1)
  -h, --help                     display help for command

CHANGE LOG

  • ✏️ Fixing Missing declaration file

Package Sidebar

Install

npm i dts-helper

Weekly Downloads

3

Version

1.1.3

License

ISC

Unpacked Size

90.6 kB

Total Files

52

Last publish

Collaborators

  • coffee377