This PR adds a simple start at hashing out the simpler parts of declaring TypeScript interfaces for consumers of babel-minify-webpack-plugin. This allows end-users to leverage this plugin in a TypeScript-authored Webpack config file:
import { Plugin } from 'webpack';
import Minify from 'babel-minify-webpack-plugin';
const plugins: Plugin[] = [ new Minify() ];
There were a couple cases where the plugin was being extremely robust to support just about any value passed in as a fallback (typically via boolean coercion) that isn't explicitly listed in the types (otherwise they'd fall down to TypeScript's any).
This PR adds a simple start at hashing out the simpler parts of declaring TypeScript interfaces for consumers of
babel-minify-webpack-plugin
. This allows end-users to leverage this plugin in a TypeScript-authored Webpack config file:There were a couple cases where the plugin was being extremely robust to support just about any value passed in as a fallback (typically via boolean coercion) that isn't explicitly listed in the types (otherwise they'd fall down to TypeScript's
any
).