Skip to content

waygraph / normalizeTodos

Function: normalizeTodos() ​

normalizeTodos(todos, todoIndex?, style?): WaygraphTodoItem[]

Defined in: src/demo/narration/todo-dock.ts:61

Normalize checklist rows; apply todoIndex for sequential done/current. In checklist / bullets mode, todoIndex is ignored unless items omit explicit done (bullets never auto-mark current).

Parameters ​

todos ​

readonly WaygraphTodoInput[] | undefined

todoIndex? ​

number

style? ​

TodoListStyle = "sequential"

Returns ​

WaygraphTodoItem[]

waygraph 0.18.3 (alpha) · Node 24+ · peer @playwright/test ^1.40.0 · syntax may change before 1.0: see what was removed