From abdc1b6fa65d355f15cd63753710173374d9f9a8 Mon Sep 17 00:00:00 2001 From: Mert Koseoglu Date: Fri, 20 Mar 2026 00:53:27 +0300 Subject: [PATCH] fix: replace explicit any types with proper interfaces in prompts.json Fixes ESLint no-explicit-any errors on contributors and tags map callbacks. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/app/prompts.json/route.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/prompts.json/route.ts b/src/app/prompts.json/route.ts index 76a9f657f5c..fb98785d4a5 100644 --- a/src/app/prompts.json/route.ts +++ b/src/app/prompts.json/route.ts @@ -190,14 +190,14 @@ export async function GET(request: NextRequest) { identifier: getUserIdentifier(prompt.author), verified: prompt.author.verified, }, - contributors: prompt.contributors.map((c: any) => ({ + contributors: prompt.contributors.map((c: { username: string; name: string | null; avatar: string | null; githubUsername: string | null; verified: boolean }) => ({ username: c.username, name: c.name, avatar: c.avatar, identifier: getUserIdentifier(c), verified: c.verified, })), - tags: prompt.tags.map((pt: any) => ({ + tags: prompt.tags.map((pt: { tag: { id: string; name: string; slug: string; color: string | null } }) => ({ id: pt.tag.id, name: pt.tag.name, slug: pt.tag.slug,