mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
webpack: add Stats.presetToOptions method (#39947)
* Add `Stats.presetToOptions` method * Fix typo * Improve jsdocs * Fix spacing
This commit is contained in:
committed by
Jesse Trinity
parent
abf21ab54d
commit
30dbac58e4
Vendored
+5
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user