Minor type fix

This commit is contained in:
WardPearce
2024-10-30 01:11:53 +13:00
parent 09b1314b5b
commit 52353ec5d8
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ export async function getSearchSuggestions(search: string, fetchOptions?: Reques
return await resp.json();
}
export async function getHashtag(tag: string): Promise<Video> {
export async function getHashtag(tag: string): Promise<{ results: Video[]; }> {
const resp = await fetchErrorHandle(await fetch(buildPath(`hashtag/${tag}`)));
return await resp.json();
}
@@ -1,7 +1,6 @@
import { getHashtag } from '$lib/api';
export async function load({ params }) {
console.log(params.slug);
return {
hashTagVideos: await getHashtag(params.slug)
};