webpack/declarations/plugins/ProgressPlugin.d.ts

58 lines
1.4 KiB
TypeScript
Raw Normal View History

/*
2018-10-29 20:49:31 +08:00
* This file was automatically generated.
* DO NOT MODIFY BY HAND.
2025-05-02 00:16:09 +08:00
* Run `yarn fix:special` to update
2018-10-29 20:49:31 +08:00
*/
export type ProgressPluginArgument = ProgressPluginOptions | HandlerFunction;
/**
* Function that executes for every progress step.
2018-10-29 20:49:31 +08:00
*/
2019-02-05 17:06:32 +08:00
export type HandlerFunction = (
2018-10-29 20:49:31 +08:00
percentage: number,
msg: string,
...args: string[]
2019-02-05 17:06:32 +08:00
) => void;
2018-10-29 20:49:31 +08:00
/**
* Options object for the ProgressPlugin.
*/
2018-10-29 20:49:31 +08:00
export interface ProgressPluginOptions {
/**
* Show active modules count and one active module in progress message.
*/
activeModules?: boolean;
/**
* Show dependencies count in progress message.
*/
dependencies?: boolean;
/**
* Minimum dependencies count to start with. For better progress calculation. Default: 10000.
*/
dependenciesCount?: number;
/**
* Show entries count in progress message.
*/
entries?: boolean;
2018-10-29 20:49:31 +08:00
/**
* Function that executes for every progress step.
2018-10-29 20:49:31 +08:00
*/
handler?: HandlerFunction;
/**
* Show modules count in progress message.
*/
modules?: boolean;
2018-10-29 20:49:31 +08:00
/**
* Minimum modules count to start with. For better progress calculation. Default: 5000.
2018-10-29 20:49:31 +08:00
*/
modulesCount?: number;
/**
* Collect percent algorithm. By default it calculates by a median from modules, entries and dependencies percent.
*/
percentBy?: "entries" | "modules" | "dependencies" | null;
2018-10-29 20:49:31 +08:00
/**
* Collect profile data for progress steps. Default: false.
2018-10-29 20:49:31 +08:00
*/
profile?: true | false | null;
}