From fa7a253072aedac364c30d17bbfffc1921182d18 Mon Sep 17 00:00:00 2001 From: Olegs Jeremejevs Date: Mon, 23 Jul 2018 22:04:40 +0300 Subject: [PATCH] webpack: Add missing properties in Stats and Compilation (#27497) --- types/webpack/index.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/types/webpack/index.d.ts b/types/webpack/index.d.ts index 5508d10491..c266c7249e 100644 --- a/types/webpack/index.d.ts +++ b/types/webpack/index.d.ts @@ -949,6 +949,7 @@ declare namespace webpack { usedModuleIds: any; fileTimestamps: Map; contextTimestamps: Map; + hash?: string; getStats(): Stats; addModule(module: CompilationModule, cacheGroup: any): any; // tslint:disable-next-line:ban-types @@ -1097,6 +1098,10 @@ declare namespace webpack { } abstract class Stats { + compilation: compilation.Compilation; + hash?: string; + startTime?: Date; + endTime?: Date; /** Returns true if there were errors while compiling. */ hasErrors(): boolean; /** Returns true if there were warnings while compiling. */