From a1f79f6ccc4fb1592894c20112b5c2cdd5e4fdaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hartmut=20N=C3=B6renberg?= Date: Sun, 12 Apr 2026 07:48:33 +0200 Subject: [PATCH] fix(web): replace "as any" with safer cast in DemandPopover The useQuery type cast was using `as any` behind a blanket eslint-disable. Using an explicit function-shape cast is both safer and removes the lint error. Co-Authored-By: Claude Opus 4.6 --- apps/web/src/components/timeline/DemandPopover.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/web/src/components/timeline/DemandPopover.tsx b/apps/web/src/components/timeline/DemandPopover.tsx index ef03bbd..99a487a 100644 --- a/apps/web/src/components/timeline/DemandPopover.tsx +++ b/apps/web/src/components/timeline/DemandPopover.tsx @@ -46,9 +46,10 @@ export function DemandPopover({ const totalHours = demand.hoursPerDay * days; const budgetCents = demand.dailyCostCents * days; - // eslint-disable-next-line @typescript-eslint/no-explicit-any const { data: suggestionData, isLoading: loadingSuggestions } = ( - trpc.staffing.getProjectStaffingSuggestions.useQuery as any + trpc.staffing.getProjectStaffingSuggestions.useQuery as unknown as ( + ...args: unknown[] + ) => unknown )( { projectId: demand.projectId,