Update index.d.ts

This commit is contained in:
Tommy Troy Lin
2017-02-14 16:40:09 +08:00
committed by GitHub
parent ddc2a2f922
commit e4454f702e
+3 -3
View File
@@ -654,14 +654,14 @@ declare namespace webpack {
*/
class BannerPlugin extends Plugin {
constructor(options?: BannerPlugin.Options | string);
constructor(options: string | BannerPlugin.Options);
}
namespace BannerPlugin {
type Filter = string | RegExp;
interface Options {
banner?: string;
banner: string;
entryOnly?: boolean;
exclude?: Filter | Filter[];
include?: Filter | Filter[];