npm.io
1.1.3 • Published 6 years agoCLI

dts-helper

Licence
ISC
Version
1.1.3
Deps
3
Size
89 kB
Vulns
0
Weekly
0

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

Keywords