full update
This commit is contained in:
@@ -11,7 +11,7 @@ export async function fetchPosts(
|
||||
userLevel?: string;
|
||||
rateFilter?: string;
|
||||
_id?: string;
|
||||
type?: string;
|
||||
type?: "image" | "video";
|
||||
exploreFilter?: string;
|
||||
subExpertise?: string;
|
||||
lat?: string;
|
||||
@@ -19,6 +19,17 @@ export async function fetchPosts(
|
||||
feedMode?: "grid" | "reels";
|
||||
seedPostId?: string;
|
||||
sort?: "latest";
|
||||
reelsTab?: "for_you" | "following" | "saved";
|
||||
heightMin?: string;
|
||||
heightMax?: string;
|
||||
weightMin?: string;
|
||||
weightMax?: string;
|
||||
sizeMin?: string;
|
||||
sizeMax?: string;
|
||||
hair_color?: string;
|
||||
eye_color?: string;
|
||||
q?: string;
|
||||
hashtag?: string;
|
||||
},
|
||||
token: string
|
||||
) {
|
||||
@@ -53,5 +64,16 @@ export async function fetchPosts(
|
||||
throw new Error(`Network response was not ok: ${response.status}`);
|
||||
}
|
||||
|
||||
return response.json();
|
||||
return response.json() as Promise<{
|
||||
posts: unknown[];
|
||||
totalPages?: number;
|
||||
totalItems?: number;
|
||||
feedMeta?: {
|
||||
isColdStart?: boolean;
|
||||
emptyFollowing?: boolean;
|
||||
emptySaved?: boolean;
|
||||
requiresAuth?: boolean;
|
||||
suggestedUsers?: unknown[];
|
||||
};
|
||||
}>;
|
||||
}
|
||||
Reference in New Issue
Block a user