MCPcopy
hub / github.com/callumalpass/tasknotes / normalizeStatusValue

Method normalizeStatusValue

src/services/TaskService.ts:199–204  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

197 }
198
199 private normalizeStatusValue(value: unknown): string {
200 if (typeof value === "boolean") return value ? "true" : "false";
201 if (typeof value === "string") return value;
202 if (typeof value === "number") return String(value);
203 return "";
204 }
205
206 private getCompletionDateForTask(task: TaskInfo): string {
207 return task.occurrence_date || getCurrentDateString();

Calls

no outgoing calls

Tested by

no test coverage detected