webpack: add Stats.presetToOptions method (#39947)

* Add `Stats.presetToOptions` method

* Fix typo

* Improve jsdocs

* Fix spacing
This commit is contained in:
Rodolfo Aguirre
2019-10-30 09:38:08 -07:00
committed by Jesse Trinity
parent abf21ab54d
commit 30dbac58e4
+5
View File
@@ -1224,6 +1224,11 @@ declare namespace webpack {
hash?: string;
startTime?: number;
endTime?: number;
/**
* Returns the default json options from the stats preset.
* @param preset The preset to be transformed into json options.
*/
static presetToOptions(preset?: Stats.Preset): Stats.ToJsonOptionsObject;
/** Returns true if there were errors while compiling. */
hasErrors(): boolean;
/** Returns true if there were warnings while compiling. */