| 1 | import { CommentType } from '@prisma/client'; |
| 2 | |
| 3 | export interface QueryParams { |
| 4 | limit?: number; |
| 5 | page?: number; |
| 6 | tabtype?: TabType; |
| 7 | search?: string; |
| 8 | date?: string; |
| 9 | type?: CommentType; |
| 10 | parentId?: number; |
| 11 | userId?: number; |
| 12 | commentId?: number; |
| 13 | timestamp?: number; |
| 14 | editCommentId?: number; |
| 15 | newPost?: 'open' | 'close'; |
| 16 | } |
| 17 | export enum TabType { |
| 18 | md = 'Most downvotes', |
| 19 | mu = 'Most upvotes', |
nothing calls this directly
no outgoing calls
no test coverage detected