We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef411aa commit f23d7eeCopy full SHA for f23d7ee
examples/image-generation/image-generation.ts
@@ -21,7 +21,7 @@ async function main() {
21
console.log('\nImage saved to output.png')
22
} else if (part.total) {
23
// Progress update
24
- process.stdout.write(`\rProgress: ${part.completed}/${part.total}`)
+ process.stdout.write(`\rProgress: ${part.completed ?? 0}/${part.total}`)
25
}
26
27
0 commit comments