Skip to content

Commit ca6d364

Browse files
Merge pull request #576 from get-convex/tom/withArgs-for-http
Allow ConvexHttpClient in withArgs
2 parents 60c0fdb + 3578a94 commit ca6d364

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/convex-helpers/browser.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { BetterOmit, EmptyObject } from "./index.js";
2-
import type { ConvexClient } from "convex/browser";
2+
import type { ConvexClient, ConvexHttpClient } from "convex/browser";
33
import type { FunctionArgs, FunctionReturnType } from "convex/server";
44
import type { FunctionReference } from "convex/server";
55
import type { Value } from "convex/values";
@@ -30,7 +30,7 @@ export type ArgsArray<
3030
* @returns { query, mutation, action } functions with the injected arguments
3131
*/
3232
export function withArgs<A extends Record<string, Value>>(
33-
client: ConvexClient,
33+
client: ConvexClient | ConvexHttpClient,
3434
injectedArgs: A,
3535
) {
3636
return {

0 commit comments

Comments
 (0)