@types/multi-progress
TypeScript icon, indicating that this package has built-in type declarations

2.0.6 • Public • Published

Installation

npm install --save @types/multi-progress

Summary

This package contains type definitions for multi-progress (https://github.com/pitaj/multi-progress).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/multi-progress.

index.d.ts

/// <reference types="node"/>

import ProgressBar = require("progress");
import { Stream } from "stream";

export as namespace MultiProgress;

export = MultiProgress;

declare class MultiProgress {
    /**
     * Create a new @see MultiProgress with the given stream, or stderr by default
     * @param stream A stream to write the progress bars to
     */
    constructor(stream?: Stream);

    /**
     * Add a new bar
     */
    newBar: (format: string, options: ProgressBar.ProgressBarOptions) => ProgressBar;

    /**
     * Close all bars
     */
    terminate: () => void;

    /**
     * Render the given progress bar
     */
    move: (index: number) => void;

    /**
     * Move the bar indicated by index forward the number of steps indicated by value
     */
    tick: (index: number, value: number, options?: any) => void;

    /**
     * Update the bar indicated by index to the value given
     */
    update: (index: number, value: number, options?: any) => void;
}

declare namespace MultiProgress {}

Additional Details

Credits

These definitions were written by David Brett.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/multi-progress

Weekly Downloads

276

Version

2.0.6

License

MIT

Unpacked Size

4.78 kB

Total Files

5

Last publish

Collaborators

  • types