Update to comply with @bumbleblym' s suggestions

This commit is contained in:
Tommy Troy Lin
2017-02-14 15:54:42 +08:00
committed by GitHub
parent 592b7f26f9
commit ad6ef1cd46
+14 -8
View File
@@ -654,14 +654,20 @@ declare namespace webpack {
*/
class BannerPlugin extends Plugin {
constructor(options: {
banner: string,
raw?: boolean,
entryOnly?: boolean,
test?: string | RegExp | Array<string | RegExp>,
include?: string | RegExp | Array<string | RegExp>,
exclude?: string | RegExp | Array<string | RegExp>
});
constructor(options?: BannerPlugin.Options | string);
}
namespace BannerPlugin {
type Filter = string | RegExp;
interface Options {
banner?: string;
entryOnly?: boolean;
exclude?: Filter | Filter[];
include?: Filter | Filter[];
raw?: boolean;
test?: Filter | Filter[];
}
}
class ContextReplacementPlugin extends Plugin {