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

1.0.2 • Public • Published

Installation

npm install --save @types/ntqdm

Summary

This package contains type definitions for ntqdm (https://github.com/jhedin/ntqdm).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ntqdm.

index.d.ts

declare namespace ntqdm {
    interface TqdmOptions {
        /** A desciption string to add before the progress bar */
        desc: string;
        /** The number of iterations to complete, needed for infinite iterables */
        total: number;
        /** The minimum number of iterations between progress bar updates */
        minIter: number;
        /** The minimum amount of time between progress bar updates */
        minInterval: number;
        /** whether to output as a log, or update the same line */
        logging: boolean;
    }
}

/** Adds a timed progress bar to iterables */
declare function ntqdm<T>(iter: Iterable<T>, par?: Partial<ntqdm.TqdmOptions>): IterableIterator<T>;

export = ntqdm;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by Christoph Thiede.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/ntqdm

Weekly Downloads

1,091

Version

1.0.2

License

MIT

Unpacked Size

3.94 kB

Total Files

5

Last publish

Collaborators

  • types