Skip to content

Commit

Permalink
Feat: #115 Task Form 관련 타입 수정 및 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Seok93 committed Sep 27, 2024
1 parent a7b30d8 commit b2cb824
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/types/TaskType.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ export type TaskOrder = Pick<Task, 'statusId' | 'taskId' | 'sortOrder'>;
export type TaskOrderForm = { tasks: TaskOrder[] };

export type TaskInfoForm = Omit<Task, 'taskId'>;
export type TaskFileForm = { files: File[] };
export type TaskFilesForm = { files: File[] };
export type TaskAssigneeForm = { userId: User['userId'] };
export type TaskAssigneesForm = { assignees: User['userId'][] };
export type TaskUpdateForm = Omit<Task, 'statusId'> & { statusId: string };
export type TaskCreationForm = TaskInfoForm & TaskAssigneesForm;
export type TaskForm = TaskInfoForm & TaskAssigneesForm & TaskFileForm;
export type TaskForm = TaskCreationForm & TaskFilesForm;
export type TaskUploadForm = Pick<Task, 'taskId'> & { file: File };

export type TaskWithStatus = RenameKeys<Omit<ProjectStatus, 'projectId'>, StatusKeyMapping> & Task;
export type TaskListWithStatus = Omit<ProjectStatus, 'projectId'> & { tasks: Task[] };

0 comments on commit b2cb824

Please sign in to comment.