UNPKG

@replyke/core

Version:

Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.

16 lines (15 loc) 701 B
import { CommentsSortByOptions } from "../../interfaces/CommentsSortByOptions"; import { Comment, CommentIncludeParam } from "../../interfaces/models/Comment"; import { PaginatedResponse } from "../../interfaces/PaginatedResponse"; export interface FetchManyCommentsProps { entityId?: string | null | undefined; userId?: string | null | undefined; parentId?: string | null | undefined; sortBy?: CommentsSortByOptions; page: number; limit?: number; include?: CommentIncludeParam; sourceId?: string | null | undefined; } declare function useFetchManyComments(): (props: FetchManyCommentsProps) => Promise<PaginatedResponse<Comment>>; export default useFetchManyComments;