[resumes][feat] Add resume-comments type

pull/320/head
Terence Ho 3 years ago
parent 2e947f5fb0
commit 29ec081180

@ -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;
};
};
}
Loading…
Cancel
Save