Skip to content

Commit 5914442

Browse files
committed
fix: query server util types
1 parent a081dc3 commit 5914442

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/runtime/server/utils/surreal-db.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import type { H3Event } from 'h3'
22

3-
import type { QueryRpcResponse, RpcParams } from '../../types'
3+
import type { QueryResponse, RpcParams } from '../../types'
44
import { type ServerOverrides, useSurrealRPC } from './surreal-fetch'
55

66
export function useSurrealDB(event: H3Event, overrides?: ServerOverrides) {
77
// query [ sql, vars ]
8-
async function query<T = any, R = QueryRpcResponse<T>>(
8+
async function query<T = any, R = QueryResponse<T>>(
99
sql: RpcParams<any, 'query'>[0],
1010
vars?: RpcParams<any, 'query'>[1],
1111
options?: ServerOverrides,

0 commit comments

Comments
 (0)