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 <noreply@anthropic.com>
This commit is contained in:
2026-04-12 07:48:33 +02:00
parent 43bfd9ed0a
commit a1f79f6ccc
@@ -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,