Skip to content

Commit 37e64a0

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/swr-openapi/src/mutate.ts

Lines changed: 1 addition & 1 deletion
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)