UNPKG

951 BTypeScriptView Raw
1/**
2 * This file was automatically generated.
3 * DO NOT MODIFY BY HAND.
4 * Run `yarn special-lint-fix` to update
5 */
6
7export type ProgressPluginArgument = ProgressPluginOptions | HandlerFunction;
8/**
9 * Function that executes for every progress step
10 */
11export type HandlerFunction = (
12 percentage: number,
13 msg: string,
14 ...args: string[]
15) => void;
16
17export interface ProgressPluginOptions {
18 /**
19 * Show active modules count and one active module in progress message
20 */
21 activeModules?: boolean;
22 /**
23 * Show entries count in progress message
24 */
25 entries?: boolean;
26 /**
27 * Function that executes for every progress step
28 */
29 handler?: HandlerFunction;
30 /**
31 * Show modules count in progress message
32 */
33 modules?: boolean;
34 /**
35 * Minimum modules count to start with. Only for mode=modules. Default: 500
36 */
37 modulesCount?: number;
38 /**
39 * Collect profile data for progress steps. Default: false
40 */
41 profile?: true | false | null;
42}