Skip to content

Commit

Permalink
fix: update TS definition
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Oct 13, 2018
1 parent cfb247a commit 6f74d9c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,15 @@ declare namespace AddAssetHtmlPlugin {
* Can be set to css to create a link-tag instead of a script-tag.
* Default 'js'
*/
typeOfAsset?: string;
typeOfAsset?: 'js' | 'css';

/**
* Extra attributes to be added to the generated tag. Useful to for instance add
* `nomodule` to a polyfill script. The `attributes` object uses the key as the
* name of the attribute, and the value as the value of it. If value is simply
* `true` no value will be added.
*/
attributes?: Object;
}
}

Expand Down

0 comments on commit 6f74d9c

Please sign in to comment.