We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 60c0fdb + 3578a94 commit ca6d364Copy full SHA for ca6d364
packages/convex-helpers/browser.ts
@@ -1,5 +1,5 @@
1
import type { BetterOmit, EmptyObject } from "./index.js";
2
-import type { ConvexClient } from "convex/browser";
+import type { ConvexClient, ConvexHttpClient } from "convex/browser";
3
import type { FunctionArgs, FunctionReturnType } from "convex/server";
4
import type { FunctionReference } from "convex/server";
5
import type { Value } from "convex/values";
@@ -30,7 +30,7 @@ export type ArgsArray<
30
* @returns { query, mutation, action } functions with the injected arguments
31
*/
32
export function withArgs<A extends Record<string, Value>>(
33
- client: ConvexClient,
+ client: ConvexClient | ConvexHttpClient,
34
injectedArgs: A,
35
) {
36
return {
0 commit comments