@param_tpss/react-dev-notes
Version:
A sticky developer note panel with drag-and-drop tasks and markdown editing, for React apps (dev-only tool).
15 lines (14 loc) • 428 B
TypeScript
export type Task = {
text: string;
done: boolean;
line: number;
};
/**
* Extract tasks from Markdown text in the format `- [ ]` or `- [x]`.
*/
export declare function extractTasks(markdown: string): Task[];
/**
* Update Markdown text with new task states.
* Replaces checked/unchecked states on matched task lines.
*/
export declare function updateMarkdownTasks(markdown: string, updatedTasks: Task[]): string;