MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / setTaskCheckedAtIndex

Function setTaskCheckedAtIndex

packages/shared-domain/src/tasklists.ts:127–133  ·  view source on GitHub ↗
(
  markdown: string,
  taskIndex: number,
  checked: boolean
)

Source from the content-addressed store, hash-verified

125 * the `setTask*` mutators. Kept as a separate export for callers that
126 * want the explicit naming. */
127export function setTaskCheckedAtIndex(
128 markdown: string,
129 taskIndex: number,
130 checked: boolean
131): string {
132 return toggleTaskAtIndex(markdown, taskIndex, checked)
133}
134
135const WAITING_TOKEN_RE = /(^|\s)@waiting\b/i
136

Callers 2

store.tsFile · 0.90
tasklists.test.tsFile · 0.90

Calls 1

toggleTaskAtIndexFunction · 0.70

Tested by

no test coverage detected