File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 } )
Original file line number Diff line number Diff 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 } )
You can’t perform that action at this time.
0 commit comments