Skip to content

Commit

Permalink
Add typing for getHooks
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxsan authored and jantimon committed Mar 21, 2020
1 parent a1a37cf commit 42a6d4a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion typings.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AsyncSeriesWaterfallHook } from "tapable";
import { Compiler } from 'webpack';
import { Compiler, compilation } from 'webpack';
import { Options as HtmlMinifierOptions } from "html-minifier";

export = HtmlWebpackPlugin;
Expand All @@ -8,6 +8,8 @@ declare class HtmlWebpackPlugin {
constructor(options?: HtmlWebpackPlugin.Options);

apply(compiler: Compiler): void;

static getHooks(compilation: compilation.Compilation): HtmlWebpackPlugin.Hooks;
}

declare namespace HtmlWebpackPlugin {
Expand Down

0 comments on commit 42a6d4a

Please sign in to comment.