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:
@@ -46,9 +46,10 @@ export function DemandPopover({
|
|||||||
const totalHours = demand.hoursPerDay * days;
|
const totalHours = demand.hoursPerDay * days;
|
||||||
const budgetCents = demand.dailyCostCents * days;
|
const budgetCents = demand.dailyCostCents * days;
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
const { data: suggestionData, isLoading: loadingSuggestions } = (
|
const { data: suggestionData, isLoading: loadingSuggestions } = (
|
||||||
trpc.staffing.getProjectStaffingSuggestions.useQuery as any
|
trpc.staffing.getProjectStaffingSuggestions.useQuery as unknown as (
|
||||||
|
...args: unknown[]
|
||||||
|
) => unknown
|
||||||
)(
|
)(
|
||||||
{
|
{
|
||||||
projectId: demand.projectId,
|
projectId: demand.projectId,
|
||||||
|
|||||||
Reference in New Issue
Block a user