Skip to content

Commit a981f99

Browse files
committed
Rename params to parameters
1 parent a85bfde commit a981f99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/seam/use-seam-query.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ import { useSeamClient } from 'lib/seam/use-seam-client.js'
99

1010
export function useSeamQuery<T extends SeamHttpEndpointQueryPaths>(
1111
endpointPath: T,
12-
params?: Parameters<SeamHttpEndpoints[T]>[0],
12+
parameters?: Parameters<SeamHttpEndpoints[T]>[0],
1313
options?: Parameters<SeamHttpEndpoints[T]>[1]
1414
): UseQueryResult<Awaited<ReturnType<SeamHttpEndpoints[T]>>, SeamHttpApiError> {
1515
const { endpointClient: client } = useSeamClient()
1616
return useQuery({
1717
enabled: client != null,
18-
queryKey: [endpointPath, params],
18+
queryKey: [endpointPath, parameters],
1919
queryFn: async () => {
2020
if (client == null) return null
2121
// Using @ts-expect-error over any is preferred, but not possible here because TypeScript will run out of memory.
2222
// Type assertion is needed here for performance reasons. The types are correct at runtime.
2323
const endpoint = client[endpointPath] as any
24-
return await endpoint(params, options)
24+
return await endpoint(parameters, options)
2525
},
2626
})
2727
}

0 commit comments

Comments
 (0)