Skip to content

Commit c0e7b65

Browse files
authored
fix: update TS definition for v5 (#257)
1 parent 03bc2bb commit c0e7b65

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

index.d.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
declare namespace AddAssetHtmlPlugin {
2-
interface Options {
2+
type Options = {
33
/**
4-
* The absolute path of the file you want to add to the compilation, and resulting HTML file.
5-
* Mandatory.
4+
* The absolute path of the file you want to add to the compilation and resulting HTML file.
65
*/
76
filepath: string;
8-
7+
} | {
8+
/**
9+
* The path as a glob pattern you want to add to the compilation and resulting HTML file.
10+
*/
11+
glob: string;
12+
} & {
913
/**
1014
* Files that the assets will be added to.
1115
* By default the assets will be included in all files. If files are defined, the

0 commit comments

Comments
 (0)