Skip to content

Commit 37e64a0

Browse files
authored
fix: get post types with "post" option
1 parent 7f3f7b6 commit 37e64a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/swr-openapi/src/mutate.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function createMutateHook<Paths extends {}, IMediaType extends MediaType>
4646

4747
return useCallback(
4848
function mutate<
49-
Path extends PathsWithMethod<Paths, "get">,
49+
Path extends PathsWithMethod<Paths, "post">,
5050
R extends TypesForGetRequest<Paths, Path>,
5151
Init extends R["Init"],
5252
>(

0 commit comments

Comments
 (0)