mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
[cli-progress] increment can be called without parameters. (#41945)
> Increases the current progress value by a specified amount (default +1). Update payload optionally Source: https://www.npmjs.com/package/cli-progress#increment
This commit is contained in:
@@ -94,6 +94,8 @@ function test5() {
|
||||
function test6() {
|
||||
// SingleBar
|
||||
const bar2 = new progress.SingleBar({}, progress.Presets.shades_classic);
|
||||
bar2.increment();
|
||||
bar2.increment(10);
|
||||
|
||||
// MultiBar
|
||||
const multiBar = new progress.MultiBar({}, progress.Presets.shades_classic);
|
||||
|
||||
2
types/cli-progress/index.d.ts
vendored
2
types/cli-progress/index.d.ts
vendored
@@ -122,7 +122,7 @@ export class SingleBar {
|
||||
getTotal(): any;
|
||||
|
||||
/** Increases the current progress value by a specified amount (default +1). Update payload optionally */
|
||||
increment(step: number, payload?: object): void;
|
||||
increment(step?: number, payload?: object): void;
|
||||
|
||||
render(): void;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user