Skip to content

Function: getPhaseDuration()

function getPhaseDuration(phase, settings): number;

Defined in: shared/src/helper/pomodoroHelper/pomodoroFunctions.ts:16

Get the duration of a Pomodoro phase in seconds Uses timer-specific settings if available, otherwise falls back to global settings

ParameterType
phase"focus" | "short-break" | "long-break"
settingsPomodoroSettings

number