MCPcopy Create free account
hub / github.com/NathanPB/progress.js / constructor

Method constructor

src/ProgressBar.ts:60–66  ·  view source on GitHub ↗
({ current, total, title }: { current?: number, total?: number, title?: string } = {})

Source from the content-addressed store, hash-verified

58 }
59
60 constructor({ current, total, title }: { current?: number, total?: number, title?: string } = {}) {
61 super()
62 this.current = current ?? this.current;
63 this.total = total ?? this.total
64 this.title = title ?? ''
65 this.checkCompleteEvent()
66 }
67
68 private checkCompleteEvent() {
69 if (this.completeEventEmitted && !this.isComplete()) {

Callers

nothing calls this directly

Calls 1

checkCompleteEventMethod · 0.95

Tested by

no test coverage detected