From 3578a94146d69b1b8050420469df807c0599f3ba Mon Sep 17 00:00:00 2001 From: Tom Ballinger Date: Mon, 12 May 2025 15:11:02 -0700 Subject: [PATCH] Simple type change --- packages/convex-helpers/browser.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {