UNPKG

1.07 kBTypeScriptView Raw
1import * as ProgressBar from "progress";
2import { Plugin } from "webpack";
3
4export = ProgressBarPlugin;
5
6declare namespace ProgressBarPlugin {
7 interface Options extends ProgressBar.ProgressBarOptions {
8 /**
9 * the format of the progress bar
10 * @default ':bar'
11 */
12 format?: string | undefined;
13 /**
14 * optional function to call when the progress bar completes
15 */
16 callback?: (() => void) | undefined;
17 /**
18 * option to show summary of time taken
19 * @default true
20 */
21 summary?: boolean | undefined;
22 /**
23 * custom summary message if summary option is false
24 */
25 summaryContent?: boolean | undefined;
26 /**
27 * function to display a custom summary
28 * (passed build time)
29 */
30 customSummary?: ((summary: string) => void) | undefined;
31 }
32}
33
34/**
35 * A progress bar plugin for Webpack.
36 */
37declare class ProgressBarPlugin extends Plugin {
38 constructor(options?: ProgressBarPlugin.Options);
39}
40
\No newline at end of file