From 9b553364c8e3b005ecc88c916d061768879f10a2 Mon Sep 17 00:00:00 2001 From: Michael Herzner Date: Wed, 6 Nov 2024 23:57:40 +0100 Subject: [PATCH] chore: appease ts --- frontend/islands/GlobalSearch.tsx | 1 + frontend/routes/packages.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/frontend/islands/GlobalSearch.tsx b/frontend/islands/GlobalSearch.tsx index 96b484b7..56d56553 100644 --- a/frontend/islands/GlobalSearch.tsx +++ b/frontend/islands/GlobalSearch.tsx @@ -136,6 +136,7 @@ export function GlobalSearch( searchNRef.current.displayed = searchN; batch(() => { selectionIdx.value = -1; + // @ts-ignore orama's return type doesn't match our type suggestions.value = res?.hits.map((hit) => hit.document) ?? []; }); } else if (kind === "packages") { diff --git a/frontend/routes/packages.tsx b/frontend/routes/packages.tsx index a654746e..0666cc16 100644 --- a/frontend/routes/packages.tsx +++ b/frontend/routes/packages.tsx @@ -109,6 +109,7 @@ export const handler: Handlers = { } return ctx.render({ + // @ts-ignore orama's return type doesn't match our type packages, query: search, page,