mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
update to node-progress v2.0.0
This commit is contained in:
19
types/progress/index.d.ts
vendored
19
types/progress/index.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
// Type definitions for node-progress v1.1.8
|
||||
// Type definitions for node-progress v2.0.0
|
||||
// Project: https://github.com/tj/node-progress
|
||||
// Definitions by: Sebastian Lenz <https://github.com/sebastian-lenz>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -15,12 +15,27 @@ interface ProgressBarOptions {
|
||||
* Total number of ticks to complete.
|
||||
*/
|
||||
total: number;
|
||||
|
||||
|
||||
/**
|
||||
* current completed index
|
||||
*/
|
||||
curr?: number;
|
||||
|
||||
/**
|
||||
* head character defaulting to complete character
|
||||
*/
|
||||
head?: string;
|
||||
|
||||
/**
|
||||
* The displayed width of the progress bar defaulting to total.
|
||||
*/
|
||||
width?: number;
|
||||
|
||||
/**
|
||||
* minimum time between updates in milliseconds defaulting to 16
|
||||
*/
|
||||
renderThrottle?: number;
|
||||
|
||||
/**
|
||||
* The output stream defaulting to stderr.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user