mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
webpack: Add missing properties in Stats and Compilation (#27497)
This commit is contained in:
parent
572f8b02ec
commit
fa7a253072
5
types/webpack/index.d.ts
vendored
5
types/webpack/index.d.ts
vendored
@ -949,6 +949,7 @@ declare namespace webpack {
|
||||
usedModuleIds: any;
|
||||
fileTimestamps: Map<string, number>;
|
||||
contextTimestamps: Map<string, number>;
|
||||
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. */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user