Skip to content

Commit

Permalink
chore(web): add missing type to fetchIssues
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Aug 7, 2024
1 parent 39958cf commit 1a93b2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/api/issues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
*/

import { get } from "~/api/http";
import { Issue } from "~/client/mixins";
import { IssuesScope } from "~/types/issues";

const URLS = {
Expand All @@ -32,6 +33,6 @@ const URLS = {
/**
* Return the issues of the given scope.
*/
const fetchIssues = (scope: IssuesScope) => get(`/api/${URLS[scope]}`);
const fetchIssues = (scope: IssuesScope): Promise<Issue[]> => get(`/api/${URLS[scope]}`);

export { fetchIssues };

0 comments on commit 1a93b2d

Please sign in to comment.