Bundels typescript declaration generated by typescript loaded into one .d.ts file.
The Plugin looks at all declaration files which the typescript loader generated and merges them into one. Import will be sorted so that each module or package is only imported once.
Add the following line to your tsconfig.json in the compiler options.
"declaration": true
Add the following to your webpack.config.js file.
const TypescriptDeclarationPlugin = require('typescript-declaration-webpack-plugin');
...
plugins: [
new TypescriptDeclarationPlugin({
out: 'yeti-table.d.ts'
})
]
...