Skip to content

Commit

Permalink
Fix typing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
audrey-yang committed Dec 5, 2024
1 parent 555cab2 commit 91796fd
Show file tree
Hide file tree
Showing 10 changed files with 84 additions and 298 deletions.
257 changes: 10 additions & 247 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "taskflow2",
"version": "0.0.0",
"version": "0.0.1",
"description": "a little task manager",
"main": ".vite/build/main/index.js",
"author": "@audrey-yang",
Expand Down
15 changes: 15 additions & 0 deletions src/global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
interface Window {
api: {
createTask: (task: Task) => Promise<any>;
getAllTasks: () => Promise<Task[]>;
getChildTasks: (parentId: string) => Promise<Task[]>;
getChildTasksIncomplete: (parentId: string) => Promise<Task[]>;
getChildTasksComplete: (parentId: string) => Promise<Task[]>;
countChildTasksByStatus: (parentId: string, status: Status) => Promise<number>;
changeTaskPriority: (id: string, priority: Priority) => Promise<any>;
changeTaskStatus: (id: string, status: Status) => Promise<any>;
changeTaskTitle: (id: string, title: string) => Promise<any>;
changeTaskNote: (id: string, note: string) => Promise<any>;
deleteTask: (id: string) => Promise<void>;
};
}
Loading

0 comments on commit 91796fd

Please sign in to comment.