@types/progress
Advanced tools
+71
-61
@@ -1,3 +0,3 @@ | ||
| // Type definitions for node-progress v2.0.0 | ||
| // Project: https://github.com/tj/node-progress | ||
| // Type definitions for node-progress 2.0 | ||
| // Project: https://github.com/visionmedia/node-progress | ||
| // Definitions by: Sebastian Lenz <https://github.com/sebastian-lenz> | ||
@@ -8,61 +8,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
| export as namespace ProgressBar; | ||
| export = ProgressBar; | ||
| /** | ||
| * These are keys in the options object you can pass to the progress bar along with total as seen in the example above. | ||
| */ | ||
| export 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. | ||
| */ | ||
| stream?: NodeJS.WritableStream; | ||
| /** | ||
| * Completion character defaulting to "=". | ||
| */ | ||
| complete?: string; | ||
| /** | ||
| * Incomplete character defaulting to "-". | ||
| */ | ||
| incomplete?: string; | ||
| /** | ||
| * Option to clear the bar on completion defaulting to false. | ||
| */ | ||
| clear?: boolean; | ||
| /** | ||
| * Optional function to call when the progress bar completes. | ||
| */ | ||
| callback?: Function; | ||
| } | ||
| /** | ||
| * Flexible ascii progress bar. | ||
@@ -94,3 +40,3 @@ */ | ||
| constructor(format: string, total: number); | ||
| constructor(format: string, options: ProgressBarOptions); | ||
| constructor(format: string, options: ProgressBar.ProgressBarOptions); | ||
@@ -140,5 +86,69 @@ | ||
| complete: boolean; | ||
| /** | ||
| * Current tick number. | ||
| */ | ||
| curr: number; | ||
| /** | ||
| * Total number of ticks to complete. | ||
| */ | ||
| total: number; | ||
| } | ||
| declare namespace ProgressBar { } | ||
| export default ProgressBar; | ||
| declare namespace ProgressBar { | ||
| /** | ||
| * These are keys in the options object you can pass to the progress bar along with total as seen in the example above. | ||
| */ | ||
| 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. | ||
| */ | ||
| stream?: NodeJS.WritableStream; | ||
| /** | ||
| * Completion character defaulting to "=". | ||
| */ | ||
| complete?: string; | ||
| /** | ||
| * Incomplete character defaulting to "-". | ||
| */ | ||
| incomplete?: string; | ||
| /** | ||
| * Option to clear the bar on completion defaulting to false. | ||
| */ | ||
| clear?: boolean; | ||
| /** | ||
| * Optional function to call when the progress bar completes. | ||
| */ | ||
| callback?: Function; | ||
| } | ||
| } |
| { | ||
| "name": "@types/progress", | ||
| "version": "2.0.2", | ||
| "version": "2.0.3", | ||
| "description": "TypeScript definitions for node-progress", | ||
@@ -23,4 +23,4 @@ "license": "MIT", | ||
| }, | ||
| "typesPublisherContentHash": "3822eca99343e4e3305d53388442773edb85f968227aa2a291415e181397fad8", | ||
| "typesPublisherContentHash": "6c99309a05119558f9dbb4560676705ebc1fd2ba3099d5750eda4b076ee28c52", | ||
| "typeScriptVersion": "2.0" | ||
| } |
@@ -5,3 +5,3 @@ # Installation | ||
| # Summary | ||
| This package contains type definitions for node-progress (https://github.com/tj/node-progress). | ||
| This package contains type definitions for node-progress (https://github.com/visionmedia/node-progress). | ||
@@ -12,7 +12,7 @@ # Details | ||
| Additional Details | ||
| * Last updated: Wed, 12 Dec 2018 19:18:24 GMT | ||
| * Last updated: Fri, 14 Dec 2018 19:15:22 GMT | ||
| * Dependencies: @types/node | ||
| * Global values: none | ||
| * Global values: ProgressBar | ||
| # Credits | ||
| These definitions were written by Sebastian Lenz <https://github.com/sebastian-lenz>. |
6426
4.61%126
8.62%