Skip to content

Commit 6f74d9c

Browse files
committed
fix: update TS definition
1 parent cfb247a commit 6f74d9c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

index.d.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,15 @@ declare namespace AddAssetHtmlPlugin {
3939
* Can be set to css to create a link-tag instead of a script-tag.
4040
* Default 'js'
4141
*/
42-
typeOfAsset?: string;
42+
typeOfAsset?: 'js' | 'css';
43+
44+
/**
45+
* Extra attributes to be added to the generated tag. Useful to for instance add
46+
* `nomodule` to a polyfill script. The `attributes` object uses the key as the
47+
* name of the attribute, and the value as the value of it. If value is simply
48+
* `true` no value will be added.
49+
*/
50+
attributes?: Object;
4351
}
4452
}
4553

0 commit comments

Comments
 (0)