Files
obsidian-tasks-reminder/src/types/task.ts

33 lines
564 B
TypeScript

import { Dayjs } from "dayjs";
export type Task = {
status: string;
label: string;
fullLabel: string;
tags: string[];
priority: TaskPriority;
priorityStr: string;
createdDate?: Dayjs;
startDate?: Dayjs;
scheduledDate?: Dayjs;
dueDate?: Dayjs;
completedDate?: Dayjs;
cancelledDate?: Dayjs;
recurrenceRule?: string;
onDelete?: string;
id?: string;
dependsOn?: string[];
reminder?: string;
}
export enum TaskPriority {
LOWEST,
LOW,
NORMAL,
MEDIUM,
HIGH,
HIGHEST,
};
export type TaskDatabase = Record<string, Task[]>;