diff --git a/types/webpack/index.d.ts b/types/webpack/index.d.ts index 469fd67076..64aa5fe546 100644 --- a/types/webpack/index.d.ts +++ b/types/webpack/index.d.ts @@ -988,8 +988,8 @@ declare namespace webpack { shouldEmit: SyncBailHook; done: AsyncSeriesHook; additionalPass: AsyncSeriesHook; - beforeRun: AsyncSeriesHook; - run: AsyncSeriesHook; + beforeRun: AsyncSeriesHook; + run: AsyncSeriesHook; emit: AsyncSeriesHook; afterEmit: AsyncSeriesHook; thisCompilation: SyncHook; diff --git a/types/webpack/webpack-tests.ts b/types/webpack/webpack-tests.ts index 49b827d934..4d9c01ecb7 100644 --- a/types/webpack/webpack-tests.ts +++ b/types/webpack/webpack-tests.ts @@ -284,6 +284,9 @@ configuration = { callback ); }); + + this.hooks.beforeRun.tap("SomePlugin", (compiler: webpack.Compiler) => {}); + this.hooks.run.tap("SomePlugin", (compiler: webpack.Compiler) => {}); } ] };