UNPKG

@replyke/core

Version:

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

25 lines (24 loc) 730 B
import type { User } from "../../../interfaces/models/User"; export interface FollowingWithFollowInfo { followId: string; user: User; followedAt: string; } export interface FollowingResponse { following: FollowingWithFollowInfo[]; pagination: { currentPage: number; totalPages: number; totalCount: number; hasNextPage: boolean; hasPreviousPage: boolean; limit: number; }; } export interface FetchFollowingByUserIdParams { userId: string; page?: number; limit?: number; } declare function useFetchFollowingByUserId(): ({ userId, page, limit }: FetchFollowingByUserIdParams) => Promise<FollowingResponse>; export default useFetchFollowingByUserId;