node-console-progress-bar-tqdm
Version:
Progress bar in console for Node.js in the style of TQDM Python library
20 lines (19 loc) • 935 B
TypeScript
import { TqdmUnitOption, TqdmUnitTable } from './base-types';
interface LengthHolder<T = unknown> {
length: T;
}
interface FdHolder<T = unknown> {
fd: T;
}
export declare const pluralService: Intl.PluralRules;
export declare function hasOwnProperty(obj: object, key: string): boolean;
export declare function isObject(x: unknown): x is object;
export declare function isIterable<T>(x: unknown): x is Iterable<T>;
export declare function isAsyncIterable<T>(x: unknown): x is AsyncIterable<T>;
export declare function isIterator<T>(x: unknown): x is Iterator<T>;
export declare function hasLength(x: unknown): x is LengthHolder<number>;
export declare function hasFd(x: unknown): x is FdHolder<number>;
export declare function formatTimeDelta(time: number, showFractions?: boolean): string;
export declare function handleUnit(unit: TqdmUnitOption): TqdmUnitTable;
export declare function scaleUnit(x: number): string;
export {};