refactor: ♻️ 我的和登录页面优化,添加主题设置
This commit is contained in:
16
src/types/todo.ts
Normal file
16
src/types/todo.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
export interface Todo {
|
||||
id: string;
|
||||
title: string;
|
||||
description?: string;
|
||||
completed: boolean;
|
||||
deadline?: string;
|
||||
priority?: "low" | "medium" | "high";
|
||||
createdAt: string;
|
||||
updatedAt?: string;
|
||||
}
|
||||
|
||||
export interface TodoState {
|
||||
todos: Todo[];
|
||||
loading: boolean;
|
||||
error: string | null;
|
||||
}
|
||||
Reference in New Issue
Block a user