parent
29ec081180
commit
17c68852c2
@ -1,24 +1,22 @@
|
||||
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;
|
||||
};
|
||||
/**
|
||||
* Returned by `resumeReviewsRouter` (query for 'resumes.reviews.list') and received as prop by `Comment` in `CommentsList`
|
||||
* frontend-friendly representation of the query
|
||||
*/
|
||||
export 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…
Reference in new issue