@@ -107,7 +107,7 @@ type PluginOptions = {
107
107
filename ?: Required < Configuration > [ "output" ] [ "filename" ] ;
108
108
chunkFilename ?: Required < Configuration > [ "output" ] [ "chunkFilename" ] ;
109
109
ignoreOrder ?: boolean | undefined ;
110
- insert ?: string | ( ( linkTag : any ) => void ) | undefined ;
110
+ insert ?: string | ( ( linkTag : HTMLLinkElement ) => void ) | undefined ;
111
111
attributes ?: Record < string , string > | undefined ;
112
112
linkType ?: string | false | undefined ;
113
113
runtime ?: boolean | undefined ;
@@ -138,7 +138,7 @@ type PluginOptions = {
138
138
* @property {Required<Configuration>['output']['filename'] } [filename]
139
139
* @property {Required<Configuration>['output']['chunkFilename'] } [chunkFilename]
140
140
* @property {boolean } [ignoreOrder]
141
- * @property {string | ((linkTag: any ) => void) } [insert]
141
+ * @property {string | ((linkTag: HTMLLinkElement ) => void) } [insert]
142
142
* @property {Record<string, string> } [attributes]
143
143
* @property {string | false | 'text/css' } [linkType]
144
144
* @property {boolean } [runtime]
@@ -149,15 +149,15 @@ type PluginOptions = {
149
149
* @property {Required<Configuration>['output']['filename'] } filename
150
150
* @property {Required<Configuration>['output']['chunkFilename'] } [chunkFilename]
151
151
* @property {boolean } ignoreOrder
152
- * @property {string | ((linkTag: any ) => void) } [insert]
152
+ * @property {string | ((linkTag: HTMLLinkElement ) => void) } [insert]
153
153
* @property {Record<string, string> } [attributes]
154
154
* @property {string | false | 'text/css' } [linkType]
155
155
* @property {boolean } runtime
156
156
* @property {boolean } [experimentalUseImportModule]
157
157
*/
158
158
/**
159
159
* @typedef {Object } RuntimeOptions
160
- * @property {string | ((linkTag: any ) => void) | undefined } insert
160
+ * @property {string | ((linkTag: HTMLLinkElement ) => void) | undefined } insert
161
161
* @property {string | false | 'text/css' } linkType
162
162
* @property {Record<string, string> | undefined } attributes
163
163
*/
@@ -190,14 +190,14 @@ type NormalizedPluginOptions = {
190
190
filename : Required < Configuration > [ "output" ] [ "filename" ] ;
191
191
chunkFilename ?: Required < Configuration > [ "output" ] [ "chunkFilename" ] ;
192
192
ignoreOrder : boolean ;
193
- insert ?: string | ( ( linkTag : any ) => void ) | undefined ;
193
+ insert ?: string | ( ( linkTag : HTMLLinkElement ) => void ) | undefined ;
194
194
attributes ?: Record < string , string > | undefined ;
195
195
linkType ?: string | false | undefined ;
196
196
runtime : boolean ;
197
197
experimentalUseImportModule ?: boolean | undefined ;
198
198
} ;
199
199
type RuntimeOptions = {
200
- insert : string | ( ( linkTag : any ) => void ) | undefined ;
200
+ insert : string | ( ( linkTag : HTMLLinkElement ) => void ) | undefined ;
201
201
linkType : string | false | "text/css" ;
202
202
attributes : Record < string , string > | undefined ;
203
203
} ;
0 commit comments