UNPKG

@replyke/core

Version:

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

13 lines (12 loc) 491 B
import { CommentsSortByOptions } from "../../interfaces/CommentsSortByOptions"; import { Comment as CommentType } from "../../interfaces/models/Comment"; declare function useFetchComments(): (props: { entityId?: string | null | undefined; userId?: string | null | undefined; parentId?: string | null | undefined; sortBy?: CommentsSortByOptions; page: number; limit?: number; includeEntity?: boolean; }) => Promise<CommentType[]>; export default useFetchComments;