diff --git a/packages/convex-helpers/browser.ts b/packages/convex-helpers/browser.ts index 903f8552..cc3f4357 100644 --- a/packages/convex-helpers/browser.ts +++ b/packages/convex-helpers/browser.ts @@ -1,5 +1,5 @@ import type { BetterOmit, EmptyObject } from "./index.js"; -import type { ConvexClient } from "convex/browser"; +import type { ConvexClient, ConvexHttpClient } from "convex/browser"; import type { FunctionArgs, FunctionReturnType } from "convex/server"; import type { FunctionReference } from "convex/server"; import type { Value } from "convex/values"; @@ -30,7 +30,7 @@ export type ArgsArray< * @returns { query, mutation, action } functions with the injected arguments */ export function withArgs>( - client: ConvexClient, + client: ConvexClient | ConvexHttpClient, injectedArgs: A, ) { return {