(path: string)
| 2653 | } |
| 2654 | |
| 2655 | private async requireTask(path: string): Promise<TaskInfo> { |
| 2656 | const normalizedPath = this.normalizeTaskPath(path); |
| 2657 | const task = await this.plugin.cacheManager.getTaskInfo(normalizedPath); |
| 2658 | if (!task) { |
| 2659 | throw new TaskNotesApiError("task_not_found", `Task not found: ${normalizedPath}`, { |
| 2660 | status: 404, |
| 2661 | details: { path: normalizedPath }, |
| 2662 | }); |
| 2663 | } |
| 2664 | return task; |
| 2665 | } |
| 2666 | |
| 2667 | private requireTaskFile(path: string): TFile { |
| 2668 | const file = this.plugin.app.vault.getAbstractFileByPath(path); |
no test coverage detected