From 810d63ea4d52e8ad4ba1b785c9dd8761507d1226 Mon Sep 17 00:00:00 2001 From: Bram Suurd <78373894+BramSuurdje@users.noreply.github.com> Date: Wed, 6 Nov 2024 22:55:24 +0100 Subject: [PATCH] Ensure fetchScripts returns a typed Script array by specifying return type in map function --- frontend/src/app/api/categories/route.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/api/categories/route.ts b/frontend/src/app/api/categories/route.ts index e7e64107..a38eaf84 100644 --- a/frontend/src/app/api/categories/route.ts +++ b/frontend/src/app/api/categories/route.ts @@ -18,11 +18,11 @@ const fetchScripts = async (): Promise => { ); const files: { download_url: string }[] = await response.json(); const scripts = await Promise.all( - files.map(async (file) => { + files.map(async (file): Promise