Skip to content

Commit 69fe23d

Browse files
committed
Fix linter error
1 parent a175ace commit 69fe23d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function useSeamMutation<T extends SeamHttpEndpointMutationPaths>(
2727
if (client === null) throw new NullSeamClientError()
2828
// Using @ts-expect-error over any is preferred, but not possible here because TypeScript will run out of memory.
2929
// Type assertion is needed here for performance reasons. The types are correct at runtime.
30-
const endpoint = client[endpointPath] as any
30+
const endpoint = client[endpointPath] as (...args: any) => Promise<any>
3131
return await endpoint(parameters, options)
3232
},
3333
})

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function useSeamQuery<T extends SeamHttpEndpointQueryPaths>(
2626
if (client == null) return null
2727
// Using @ts-expect-error over any is preferred, but not possible here because TypeScript will run out of memory.
2828
// Type assertion is needed here for performance reasons. The types are correct at runtime.
29-
const endpoint = client[endpointPath] as any
29+
const endpoint = client[endpointPath] as (...args: any) => Promise<any>
3030
return await endpoint(parameters, options)
3131
},
3232
})

0 commit comments

Comments
 (0)