@replyke/core
Version:
Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.
24 lines (23 loc) • 671 B
TypeScript
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 FetchFollowingParams {
page?: number;
limit?: number;
}
declare function useFetchFollowing(): ({ page, limit }?: FetchFollowingParams) => Promise<FollowingResponse>;
export default useFetchFollowing;