From c0e7b655830e815b5182a2a638c4d8d85698d0ad Mon Sep 17 00:00:00 2001 From: Ivan Lagunovsky Date: Wed, 6 Apr 2022 10:10:40 +0200 Subject: [PATCH] fix: update TS definition for v5 (#257) --- index.d.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/index.d.ts b/index.d.ts index 86543751..fd142f52 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,11 +1,15 @@ declare namespace AddAssetHtmlPlugin { - interface Options { + type Options = { /** - * The absolute path of the file you want to add to the compilation, and resulting HTML file. - * Mandatory. + * The absolute path of the file you want to add to the compilation and resulting HTML file. */ filepath: string; - + } | { + /** + * The path as a glob pattern you want to add to the compilation and resulting HTML file. + */ + glob: string; + } & { /** * Files that the assets will be added to. * By default the assets will be included in all files. If files are defined, the