Skip to content

Commit

Permalink
fix: query server util types
Browse files Browse the repository at this point in the history
  • Loading branch information
sandros94 committed Jul 10, 2024
1 parent a081dc3 commit 5914442
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/server/utils/surreal-db.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type { H3Event } from 'h3'

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

export function useSurrealDB(event: H3Event, overrides?: ServerOverrides) {
// query [ sql, vars ]
async function query<T = any, R = QueryRpcResponse<T>>(
async function query<T = any, R = QueryResponse<T>>(
sql: RpcParams<any, 'query'>[0],
vars?: RpcParams<any, 'query'>[1],
options?: ServerOverrides,
Expand Down

0 comments on commit 5914442

Please sign in to comment.