Skip to content

Commit 9fef060

Browse files
Austarasjantimon
authored andcommittedJul 18, 2019
fix: Add typing for assets(Close #1243)
1 parent 8b7255f commit 9fef060

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed
 

‎typings.d.ts

+7-10
Original file line numberDiff line numberDiff line change
@@ -105,22 +105,19 @@ declare namespace HtmlWebpackPlugin {
105105
| false // Pass an empty object to the template function
106106
| ((
107107
compilation: any,
108-
assets,
109-
assetTags: {
110-
headTags: HtmlTagObject[];
111-
bodyTags: HtmlTagObject[];
108+
assets: {
109+
publicPath: string,
110+
js: Array<string>,
111+
css: Array<string>,
112+
manifest?: string,
113+
favicon?: string
112114
},
113-
options: ProcessedOptions
114-
) => { [option: string]: any })
115-
| ((
116-
compilation: any,
117-
assets,
118115
assetTags: {
119116
headTags: HtmlTagObject[];
120117
bodyTags: HtmlTagObject[];
121118
},
122119
options: ProcessedOptions
123-
) => Promise<{ [option: string]: any }>)
120+
) => { [option: string]: any } | Promise<{ [option: string]: any }>)
124121
| { [option: string]: any };
125122
/**
126123
* The title to use for the generated HTML document

0 commit comments

Comments
 (0)
Please sign in to comment.