Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/chatty-plants-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@solidjs/router": patch
---

allow URLSearchParams type for when enctype is not set to multipart/form-data
2 changes: 1 addition & 1 deletion src/data/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import type {
import { mockBase } from "../utils.js";
import { cacheKeyOp, hashKey, revalidate, query } from "./query.js";

export type Action<T extends Array<any>, U, V = T> = (T extends [FormData] | []
export type Action<T extends Array<any>, U, V = T> = (T extends [FormData | URLSearchParams] | []
? JSX.SerializableAttributeValue
: unknown) &
((...vars: T) => Promise<NarrowResponse<U>>) & {
Expand Down