24 lines
479 B
TypeScript
24 lines
479 B
TypeScript
export type TaskStatus = "Todo" | "In-Progress" | "Complete";
|
|
|
|
export type TaskSort = "createdAt" | "topic" | "status" | "dueDate";
|
|
|
|
export type TaskInput = {
|
|
title: string;
|
|
description: string;
|
|
dueDate: string;
|
|
topic: string;
|
|
};
|
|
|
|
export type Task = TaskInput & {
|
|
id: number;
|
|
status: TaskStatus;
|
|
archivedAt: string | null;
|
|
createdAt: string;
|
|
updatedAt: string;
|
|
isOverdue: boolean;
|
|
};
|
|
|
|
export type TaskUpdate = Partial<TaskInput> & {
|
|
status?: TaskStatus;
|
|
};
|