Skip to content

Commit

Permalink
fix(node-utilities): export progress types
Browse files Browse the repository at this point in the history
  • Loading branch information
snickbit committed Jul 17, 2023
1 parent 966ce04 commit e0457c8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion packages/node-utilities/src/multi-progress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,26 @@ export interface MultiProgressChildConfig extends ProgressConfig {
export type MultiProgressChildOptions = Partial<MultiProgressChildConfig>

/**
* @internal
* Multi-progress child bar
* @category Progress
*/
export class MultiProgressChild extends Progress {
id: string

declare options: MultiProgressChildConfig

/**
* @param options
* @internal
*/
constructor(options?: MultiProgressChildOptions) {
super(options)
}

/**
* @private
* @internal
*/
#create() {
if (!this.out.isVerbose()) {
this.bar = _instances[this.options.parent].create()
Expand All @@ -107,6 +116,7 @@ export class MultiProgressChild extends Progress {

/**
* Remove this child progress bar
* @internal
*/
remove() {
if (_instances[this.options.parent]) {
Expand Down
2 changes: 1 addition & 1 deletion packages/node-utilities/src/progress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export type ProgressOptions = Partial<ProgressConfig>

export type ProgressPayload = Record<string, any>

interface CLIProgressOptions {
export interface CLIProgressOptions {
format: any
etaBuffer: number
fps: number
Expand Down

0 comments on commit e0457c8

Please sign in to comment.