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 1/2] 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>) & { From da5e1f95efde0a078b5b0b566e62c1134a75a714 Mon Sep 17 00:00:00 2001 From: Ryan Carniato Date: Mon, 10 Nov 2025 10:48:11 -0800 Subject: [PATCH 2/2] add changeset --- .changeset/chatty-plants-divide.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/chatty-plants-divide.md diff --git a/.changeset/chatty-plants-divide.md b/.changeset/chatty-plants-divide.md new file mode 100644 index 00000000..db0eea0f --- /dev/null +++ b/.changeset/chatty-plants-divide.md @@ -0,0 +1,5 @@ +--- +"@solidjs/router": patch +--- + +allow URLSearchParams type for when enctype is not set to multipart/form-data