1.0.0 • Published 4 years ago

typings-bundler-plugin v1.0.0

Weekly downloads
12
License
MIT
Repository
github
Last release
4 years ago

typings-bundler-plugin

This plugin takes all declaration files (compiled using tsc) from the assets generated by webpack and bundles these.

Configuration

When using a moduleName, import the module using import 'package-name'!

NameTypedefault
outstringbuild/types.d.ts
excludedReferencesstring[]undefined
moduleNamestringundefined
useTabCharbooleanfalse
eof\n or \r\n\n
headerstring or string[]undefined

Example

Install the package as dependency for development

  • yarn add --dev typings-bundler-plugin or npm install --dev typings-bundler-plugin
const TypingsBundlerPlugin = require('typings-bundler-plugin');

module.exports = {
  // ...
  plugins: [
    new TypingsBundlerPlugin({
      out: 'build/types.d.ts'
    })
  ]
}