Skip to content

Interface: WarmupProgress

Snapshot pushed to WarmupOptions.onProgress at each phase boundary. Carries both a machine-readable code (phase) and a default English label, so callers can either route through their own i18n or display the fallback string directly.

Properties

phase

ts
phase: WarmupPhase;

Machine-readable phase code — stable across versions, safe to switch on.


current

ts
current: number;

Number of phases completed so far.


total

ts
total: number;

Total number of phases for this body — varies with body shape.


progress

ts
progress: number;

Convenience: current / total, in [0, 1].


label

ts
label: string;

Default English label — caller may map phase to its own i18n strings.

Distribué sous la licence indiquée dans le dépôt.