Skip to content

Commit 1649cc5

Browse files
authored
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
1 parent 30f0866 commit 1649cc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/data/action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import type {
1111
import { mockBase } from "../utils.js";
1212
import { cacheKeyOp, hashKey, revalidate, query } from "./query.js";
1313

14-
export type Action<T extends Array<any>, U, V = T> = (T extends [FormData] | []
14+
export type Action<T extends Array<any>, U, V = T> = (T extends [FormData | URLSearchParams] | []
1515
? JSX.SerializableAttributeValue
1616
: unknown) &
1717
((...vars: T) => Promise<NarrowResponse<U>>) & {

0 commit comments

Comments
 (0)