diff --git a/apps/portal/src/types/resume-comments.d.ts b/apps/portal/src/types/resume-comments.d.ts new file mode 100644 index 00000000..6c55947e --- /dev/null +++ b/apps/portal/src/types/resume-comments.d.ts @@ -0,0 +1,24 @@ +import type { ResumesSection } from '@prisma/client'; + +declare module 'resume-comments' { + /** + * Returned by `resumeReviewsRouter` (query for 'resumes.reviews.list') and received as prop by `Comment` in `CommentsList` + * frontend-friendly representation of the query + */ + type ResumeComment = { + createdAt: Date; + description: string; + hasVoted: boolean; + id: string; + numVotes: number; + resumeId: string; + resumesProfileId: string; + section: ResumesSection; + updatedAt: Date; + user: { + image: string; + name: string; + userId: string; + }; + }; +}