Skip to content

Commit

Permalink
fix(useSurrealRPC): missing return type
Browse files Browse the repository at this point in the history
  • Loading branch information
sandros94 committed May 31, 2024
1 parent e6276dc commit 559f0b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/composables/surreal-fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function useSurrealFetch<T = any>(
export function useSurrealRPC<T = any>(
req: RpcRequest<T>,
options?: Omit<SurrealFetchOptions<RpcResponse<T>>, 'method' | 'body'>,
) {
): AsyncData<RpcResponse<T> | null, FetchError<any> | null> {
const id = ref(0)

return useSurrealFetch<RpcResponse<T>>('rpc', {
Expand Down

0 comments on commit 559f0b9

Please sign in to comment.