| 
									
										
										
										
											2020-05-12 21:58:14 +08:00
										 |  |  | /* | 
					
						
							| 
									
										
										
										
											2018-10-29 20:49:31 +08:00
										 |  |  |  * This file was automatically generated. | 
					
						
							|  |  |  |  * DO NOT MODIFY BY HAND. | 
					
						
							|  |  |  |  * Run `yarn special-lint-fix` to update | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export type ProgressPluginArgument = ProgressPluginOptions | HandlerFunction; | 
					
						
							|  |  |  | /** | 
					
						
							| 
									
										
										
										
											2020-03-09 21:14:44 +08:00
										 |  |  |  * 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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-02-17 19:14:51 +08:00
										 |  |  | /** | 
					
						
							| 
									
										
										
										
											2020-03-09 21:14:44 +08:00
										 |  |  |  * Options object for the ProgressPlugin. | 
					
						
							| 
									
										
										
										
											2020-02-17 19:14:51 +08:00
										 |  |  |  */ | 
					
						
							| 
									
										
										
										
											2018-10-29 20:49:31 +08:00
										 |  |  | export interface ProgressPluginOptions { | 
					
						
							| 
									
										
										
										
											2018-11-04 17:27:13 +08:00
										 |  |  | 	/** | 
					
						
							| 
									
										
										
										
											2020-03-09 21:14:44 +08:00
										 |  |  | 	 * Show active modules count and one active module in progress message. | 
					
						
							| 
									
										
										
										
											2018-11-04 17:27:13 +08:00
										 |  |  | 	 */ | 
					
						
							|  |  |  | 	activeModules?: boolean; | 
					
						
							| 
									
										
										
										
											2019-11-12 18:33:15 +08:00
										 |  |  | 	/** | 
					
						
							| 
									
										
										
										
											2020-03-09 21:14:44 +08:00
										 |  |  | 	 * Show dependencies count in progress message. | 
					
						
							| 
									
										
										
										
											2019-11-12 18:33:15 +08:00
										 |  |  | 	 */ | 
					
						
							|  |  |  | 	dependencies?: boolean; | 
					
						
							|  |  |  | 	/** | 
					
						
							| 
									
										
										
										
											2020-03-09 21:14:44 +08:00
										 |  |  | 	 * Minimum dependencies count to start with. For better progress calculation. Default: 10000. | 
					
						
							| 
									
										
										
										
											2019-11-12 18:33:15 +08:00
										 |  |  | 	 */ | 
					
						
							|  |  |  | 	dependenciesCount?: number; | 
					
						
							| 
									
										
										
										
											2018-11-04 17:27:13 +08:00
										 |  |  | 	/** | 
					
						
							| 
									
										
										
										
											2020-03-09 21:14:44 +08:00
										 |  |  | 	 * Show entries count in progress message. | 
					
						
							| 
									
										
										
										
											2018-11-04 17:27:13 +08:00
										 |  |  | 	 */ | 
					
						
							|  |  |  | 	entries?: boolean; | 
					
						
							| 
									
										
										
										
											2018-10-29 20:49:31 +08:00
										 |  |  | 	/** | 
					
						
							| 
									
										
										
										
											2020-03-09 21:14:44 +08:00
										 |  |  | 	 * Function that executes for every progress step. | 
					
						
							| 
									
										
										
										
											2018-10-29 20:49:31 +08:00
										 |  |  | 	 */ | 
					
						
							|  |  |  | 	handler?: HandlerFunction; | 
					
						
							| 
									
										
										
										
											2018-11-04 17:27:13 +08:00
										 |  |  | 	/** | 
					
						
							| 
									
										
										
										
											2020-03-09 21:14:44 +08:00
										 |  |  | 	 * Show modules count in progress message. | 
					
						
							| 
									
										
										
										
											2018-11-04 17:27:13 +08:00
										 |  |  | 	 */ | 
					
						
							|  |  |  | 	modules?: boolean; | 
					
						
							| 
									
										
										
										
											2018-10-29 20:49:31 +08:00
										 |  |  | 	/** | 
					
						
							| 
									
										
										
										
											2020-03-09 21:14:44 +08:00
										 |  |  | 	 * Minimum modules count to start with. For better progress calculation. Default: 5000. | 
					
						
							| 
									
										
										
										
											2018-10-29 20:49:31 +08:00
										 |  |  | 	 */ | 
					
						
							|  |  |  | 	modulesCount?: number; | 
					
						
							| 
									
										
										
										
											2020-01-30 17:20:48 +08:00
										 |  |  | 	/** | 
					
						
							| 
									
										
										
										
											2020-03-09 21:14:44 +08:00
										 |  |  | 	 * Collect percent algorithm. By default it calculates by a median from modules, entries and dependencies percent. | 
					
						
							| 
									
										
										
										
											2020-01-30 17:20:48 +08:00
										 |  |  | 	 */ | 
					
						
							|  |  |  | 	percentBy?: "entries" | "modules" | "dependencies" | null; | 
					
						
							| 
									
										
										
										
											2018-10-29 20:49:31 +08:00
										 |  |  | 	/** | 
					
						
							| 
									
										
										
										
											2020-03-09 21:14:44 +08:00
										 |  |  | 	 * Collect profile data for progress steps. Default: false. | 
					
						
							| 
									
										
										
										
											2018-10-29 20:49:31 +08:00
										 |  |  | 	 */ | 
					
						
							|  |  |  | 	profile?: true | false | null; | 
					
						
							|  |  |  | } |