tududi/app/frontend/entities/Task.ts
2024-10-28 18:21:53 +02:00

15 lines
346 B
TypeScript

import { Tag } from "./Tag";
export interface Task {
id?: number;
name: string;
status: StatusType;
priority?: PriorityType;
due_date?: string;
note?: string;
tags?: Tag[];
project_id?: number;
}
export type StatusType = 'not_started' | 'in_progress' | 'done' | 'archived';
export type PriorityType = 'low' | 'medium' | 'high';