UNPKG

@replyke/core

Version:

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

24 lines (23 loc) 669 B
import type { User } from "../../../interfaces/models/User"; export interface FollowerWithFollowInfo { followId: string; user: User; followedAt: string; } export interface FollowersResponse { followers: FollowerWithFollowInfo[]; pagination: { currentPage: number; totalPages: number; totalCount: number; hasNextPage: boolean; hasPreviousPage: boolean; limit: number; }; } export interface FetchFollowersParams { page?: number; limit?: number; } declare function useFetchFollowers(): ({ page, limit }?: FetchFollowersParams) => Promise<FollowersResponse>; export default useFetchFollowers;