From 1649cc509ed983b60ae7e0a64eee7747418390e7 Mon Sep 17 00:00:00 2001 From: huseeiin <122984423+huseeiin@users.noreply.github.com> Date: Thu, 28 Aug 2025 11:15:41 -0400 Subject: [PATCH] allow URLSearchParams type for when enctype is not set to multipart/form-data allow URLSearchParams type for when enctype is not set to multipart/form-data --- src/data/action.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/action.ts b/src/data/action.ts index c59f6824..dd13b03d 100644 --- a/src/data/action.ts +++ b/src/data/action.ts @@ -11,7 +11,7 @@ import type { import { mockBase } from "../utils.js"; import { cacheKeyOp, hashKey, revalidate, query } from "./query.js"; -export type Action, U, V = T> = (T extends [FormData] | [] +export type Action, U, V = T> = (T extends [FormData | URLSearchParams] | [] ? JSX.SerializableAttributeValue : unknown) & ((...vars: T) => Promise>) & {