waygraph / applyTodoPhase
Function: applyTodoPhase()
applyTodoPhase(
prev,phase):object
Defined in: src/demo/narration/todo-dock.ts:150
Carry-forward rules for the floating todo dock across demo steps.
- clear: author called hideTodos / empty todos()
- set: author authored a new dock this phase
- keep: author omitted todos — preserve previous dock (do not wipe)
Parameters
prev
TodoDockState | undefined
phase
todoDock?
todoId?
string
todoPos?
"left" | "right"
todos?
todoSync?
"set" | "clear" | "keep"
Returns
object
dock
dock:
TodoDockState|undefined
sync
sync:
"set"|"clear"|"keep"