diff --git a/FE/src/type.tsx b/FE/src/type.tsx index f01321627..f41c7aaf1 100644 --- a/FE/src/type.tsx +++ b/FE/src/type.tsx @@ -60,6 +60,10 @@ export type AssigneesProps = { }; export type FetchedLabels = { + metadata: { + totalLabelCount: number; + totalMilestoneCount: number; + }; labels: Label[] | null; }; @@ -86,3 +90,21 @@ export type FetchedDetail = { milestone: Milestone | null; comments: Comment[] | null; }; + +export type FetchedMilestone = { + metadata: { + totalLabelCount: number; + totalMilestoneCount: number; + openMilestoneCount: number; + closeMilestoneCount: number; + }; + milestones: MilestoneData[] | null; +}; + +export interface MilestoneData extends Milestone { + deadline: string; + isOpen: boolean; + description: string; + openIssueCount: number; + closeIssueCount: number; +}