Skip to content

Commit 1a959fd

Browse files
committed
Fix type error
1 parent 28006a8 commit 1a959fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type {
22
SeamHttpApiError,
33
SeamHttpEndpointPaginatedQueryPaths,
44
SeamHttpEndpoints,
5+
SeamHttpRequest,
56
SeamPageCursor,
67
} from '@seamapi/http/connect'
78
import {
@@ -49,7 +50,7 @@ export function useSeamInfiniteQuery<
4950
// Type assertion is needed here for performance reasons. The types are correct at runtime.
5051
const endpoint = client[endpointPath] as (...args: any) => any
5152
const request = endpoint(parameters, options)
52-
const pages = client.createPaginator(request)
53+
const pages = client.createPaginator(request as SeamHttpRequest<any, any>)
5354
if (pageParam == null) {
5455
const [data, { nextPageCursor }] = await pages.firstPage()
5556
return {

0 commit comments

Comments
 (0)