Skip to content

Commit 6b9e0d7

Browse files
committed
fix: Fix Type Second Atempt
Signed-off-by: aceppaluni <aceppaluni@gmail.com>
1 parent a2315ca commit 6b9e0d7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/app/api/issues/route.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ interface GitHubSearchResponse {
1212
error?: string;
1313
}
1414

15-
const searchIssues: (q: string) => Promise<GitHubSearchResponse> = rawSearchIssues;
15+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
16+
type SearchIssuesFn = (_query: string) => Promise<GitHubSearchResponse>;
17+
/*const searchIssues = rawSearchIssues as searchIssues;*/
18+
const searchIssues = rawSearchIssues as SearchIssuesFn;
1619

1720
export async function GET(req: Request) {
1821
const { searchParams } = new URL(req.url);

0 commit comments

Comments
 (0)