Skip to content

@kaiord/core


@kaiord/core / ComputeDailyDeltaResult

Type Alias: ComputeDailyDeltaResult

ComputeDailyDeltaResult = object

Defined in: packages/core/src/application/energy/goal-cap.ts:9

Safety-cap resolution for the daily goal delta. Pure; no external deps.

A cap either binds (clamp the delta to the safe value) or is overridden (the user accepted an unsafe pace, so the raw delta is used). In both bound cases capped/capReason stay set so the UI keeps its warning.

Properties

capped

capped: boolean

Defined in: packages/core/src/application/energy/goal-cap.ts:11


capReason

capReason: string | null

Defined in: packages/core/src/application/energy/goal-cap.ts:12


dailyDeltaKcal

dailyDeltaKcal: number

Defined in: packages/core/src/application/energy/goal-cap.ts:10


overridden

overridden: boolean

Defined in: packages/core/src/application/energy/goal-cap.ts:14

True when a cap would have bound but the user overrode it.