diff --git a/CHANGELOG.md b/CHANGELOG.md index 00f0996..2b9f194 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## UNRELEASED + +- fix: `options` in constructor now is optional parameter in types for TS. + ## 1.0.2 (2023-04-07) - fix: correctly export types for TS when used CommonJS - chore: update dev packages diff --git a/src/index.d.ts b/src/index.d.ts index fd1289d..13b79f7 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -2,10 +2,10 @@ import { Compiler, WebpackPluginInstance } from 'webpack'; interface IOptions { enabled: boolean; - extensions: Array | RegExp, - ignore: string | RegExp | string[] | RegExp[], - remove: RegExp, - stage: number, + extensions: Array | RegExp; + ignore: string | RegExp | string[] | RegExp[]; + remove: RegExp; + stage: number; verbose: boolean; } @@ -19,7 +19,7 @@ declare class WebpackRemoveEmptyScriptsPlugin implements WebpackPluginInstance { public static STAGE_BEFORE_PROCESS_PLUGINS: number; public static STAGE_AFTER_PROCESS_PLUGINS: number; - constructor(options: WebpackRemoveEmptyScriptsPlugin.Options); + constructor(options?: WebpackRemoveEmptyScriptsPlugin.Options); apply(compiler: Compiler): void; }