We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f3f7b6 commit 37e64a0Copy full SHA for 37e64a0
1 file changed
packages/swr-openapi/src/mutate.ts
@@ -46,7 +46,7 @@ export function createMutateHook<Paths extends {}, IMediaType extends MediaType>
46
47
return useCallback(
48
function mutate<
49
- Path extends PathsWithMethod<Paths, "get">,
+ Path extends PathsWithMethod<Paths, "post">,
50
R extends TypesForGetRequest<Paths, Path>,
51
Init extends R["Init"],
52
>(
0 commit comments