diff --git a/routes/stars/[...repos].ts b/routes/stars/[...repos].ts index 220f824..59a776e 100644 --- a/routes/stars/[...repos].ts +++ b/routes/stars/[...repos].ts @@ -4,8 +4,8 @@ export default eventHandler(async (event) => { p = p.trim(); if (p.endsWith("/*")) { const org = p.split("/")[0]; - const repos = await $fetch(`/orgs/${org}/repos`).then((r) => - r.repos.map((r) => r.repo), + const repos = await $fetch<{ repos: any[] }>(`/orgs/${org}/repos`).then( + (r) => r.repos.map((r) => r.repo), ); return repos; }