Fix warnings in demo

This commit is contained in:
Daniel Imms
2025-12-23 08:12:12 -08:00
parent 483acd3335
commit 091c3967f7
+1 -1
View File
@@ -1548,7 +1548,7 @@ function progressButtons(): void {
const STATES = { 0: 'remove', 1: 'set', 2: 'error', 3: 'indeterminate', 4: 'pause' };
const COLORS = { 0: '', 1: 'green', 2: 'red', 3: '', 4: 'yellow' };
function progressHandler({state, value}: IProgressState) {
function progressHandler({ state, value }: IProgressState): void {
// Simulate windows taskbar hack by windows terminal:
// Since the taskbar has no means to indicate error/pause state other than by coloring
// the current progress, we move 0 to 10% and distribute higher values in the remaining 90 %