update to node-progress v2.0.0

This commit is contained in:
Lars Hvam
2017-05-07 11:07:53 +02:00
committed by GitHub
parent d0dab167cd
commit 1bbe9e3b14

View File

@@ -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.
*/