Skip to content

Commit

Permalink
chore: fix internal type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 29, 2023
1 parent 90fb10e commit aa9765d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/stars/[...repos].ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit aa9765d

Please sign in to comment.