diff --git a/types/webpack/index.d.ts b/types/webpack/index.d.ts index 93df9b75cb..8d9909c550 100644 --- a/types/webpack/index.d.ts +++ b/types/webpack/index.d.ts @@ -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. */