From 9fef0603eb532b3e6a1e8871b4568e62f9bba1a3 Mon Sep 17 00:00:00 2001 From: austaras Date: Wed, 17 Jul 2019 16:34:09 +0800 Subject: [PATCH] fix: Add typing for assets(Close jantimon#1243) --- typings.d.ts | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/typings.d.ts b/typings.d.ts index df0e68e2..99e58d0d 100644 --- a/typings.d.ts +++ b/typings.d.ts @@ -105,22 +105,19 @@ declare namespace HtmlWebpackPlugin { | false // Pass an empty object to the template function | (( compilation: any, - assets, - assetTags: { - headTags: HtmlTagObject[]; - bodyTags: HtmlTagObject[]; + assets: { + publicPath: string, + js: Array, + css: Array, + manifest?: string, + favicon?: string }, - options: ProcessedOptions - ) => { [option: string]: any }) - | (( - compilation: any, - assets, assetTags: { headTags: HtmlTagObject[]; bodyTags: HtmlTagObject[]; }, options: ProcessedOptions - ) => Promise<{ [option: string]: any }>) + ) => { [option: string]: any } | Promise<{ [option: string]: any }>) | { [option: string]: any }; /** * The title to use for the generated HTML document