Skip to content

Commit

Permalink
fix: Add typing for assets(Close #1243)
Browse files Browse the repository at this point in the history
  • Loading branch information
Austaras authored and jantimon committed Jul 18, 2019
1 parent 8b7255f commit 9fef060
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions typings.d.ts
Expand Up @@ -105,22 +105,19 @@ declare namespace HtmlWebpackPlugin {
| false // Pass an empty object to the template function
| ((
compilation: any,
assets,
assetTags: {
headTags: HtmlTagObject[];
bodyTags: HtmlTagObject[];
assets: {
publicPath: string,
js: Array<string>,
css: Array<string>,
manifest?: string,
favicon?: string
},
options: ProcessedOptions
) => { [option: string]: any })
| ((
compilation: any,
assets,
assetTags: {
headTags: HtmlTagObject[];
bodyTags: HtmlTagObject[];
},
options: ProcessedOptions
) => Promise<{ [option: string]: any }>)
) => { [option: string]: any } | Promise<{ [option: string]: any }>)
| { [option: string]: any };
/**
* The title to use for the generated HTML document
Expand Down

0 comments on commit 9fef060

Please sign in to comment.