Skip to content

Commit

Permalink
fix(useSurrealWS)!: rename define to set (for using let method)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandros94 committed Jun 17, 2024
1 parent ed5313e commit 8681939
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/runtime/composables/surreal-ws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ export function useSurrealWS(
})
}

// define [ name, value ] (`let` is a reserved word in JS)
function define<T = any>(
// set [ name, value ] (`let` is a reserved word in JS)
function set<T = any>(
name: MROGParam<T, 'let', 0>,
value: MROGParam<T, 'let', 1>,
) {
Expand Down Expand Up @@ -345,7 +345,6 @@ export function useSurrealWS(
create,
_data,
data,
define,
info,
insert,
invalidate,
Expand All @@ -360,6 +359,7 @@ export function useSurrealWS(
select,
_send,
send,
set,
signin,
signup,
sql: query,
Expand Down

0 comments on commit 8681939

Please sign in to comment.