File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,19 +9,19 @@ import { useSeamClient } from 'lib/seam/use-seam-client.js'
99
1010export 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}
You can’t perform that action at this time.
0 commit comments