@@ -77,26 +77,27 @@ export class ProgressBar implements Required<Omit<IProgressBarOptions, 'current'
77
77
readonly clear : boolean = false ;
78
78
/** Completion character */
79
79
readonly completeChar = figures . square ;
80
- #current = Progress . Start ;
81
- #end: number | undefined ;
82
80
/** Option to add gradient to pending bar */
83
81
readonly gradient : boolean = true ;
84
82
/** Incomplete character */
85
83
readonly incompleteChar = figures . square ;
86
- #start = new Date ( ) . getTime ( ) ;
87
- #status = TaskStatus . Pending ;
88
84
/**
89
85
* Output template
90
86
*
91
87
* @default `:bar :rate/bps :percent :eta/s`
92
88
*/
93
89
readonly template : string ;
94
- #tokens: Map < TemplateToken | string , string > = new Map ( ) ;
95
90
/** Total number of ticks to complete */
96
91
readonly total = Progress . End ;
97
92
/** The displayed width of the progress bar defaulting to total */
98
93
readonly width : number = 20 ;
99
94
95
+ #current = Progress . Start ;
96
+ #end: number | undefined ;
97
+ #start = new Date ( ) . getTime ( ) ;
98
+ #status = TaskStatus . Pending ;
99
+ #tokens: Map < TemplateToken | string , string > = new Map ( ) ;
100
+
100
101
constructor ( template ?: string , options ?: IProgressBarOptions ) {
101
102
this . template =
102
103
template ||
0 commit comments