typings-bundler-plugin
v1.0.0
Published
This plugin takes all declaration files (compiled using `tsc`) from the assets generated by webpack and bundles these.
Readme
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'!
| Name | Type | default |
| --- | --- | --- |
| out | string | build/types.d.ts |
| excludedReferences | string[] | undefined |
| moduleName | string | undefined |
| useTabChar | boolean | false
| eof | \n or \r\n | \n |
| header | string or string[] | undefined
Example
Install the package as dependency for development
yarn add --dev typings-bundler-pluginornpm install --dev typings-bundler-plugin
const TypingsBundlerPlugin = require('typings-bundler-plugin');
module.exports = {
// ...
plugins: [
new TypingsBundlerPlugin({
out: 'build/types.d.ts'
})
]
}