MCPcopy Create free account
hub / github.com/code100x/cms / QueryParams

Interface QueryParams

src/actions/types.ts:3–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { CommentType } from '@prisma/client';
2
3export 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}
17export enum TabType {
18 md = 'Most downvotes',
19 mu = 'Most upvotes',

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected