Skip to content

Commit

Permalink
fix(useFetch):
Browse files Browse the repository at this point in the history
Fixes missing resetError type in useFetch return object
  • Loading branch information
danybeltran committed May 12, 2024
1 parent 7288ce7 commit f433243
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "http-react",
"version": "3.3.7",
"version": "3.3.8",
"description": "React hooks for data fetching",
"main": "dist/index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/hooks/use-fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1593,6 +1593,7 @@ export function useFetch<FetchDataType = any, BodyType = any>(
*/
key: resolvedKey
} as unknown as {
resetError(): void
formProps: {
action: (form: FormData) => Promise<void>
ref: typeof formRef
Expand Down

0 comments on commit f433243

Please sign in to comment.