Skip to content

Commit

Permalink
docs(hooks): update JSDoc comments with base utils
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEdoRan committed Jul 21, 2024
1 parent 9b6bb69 commit 2d9eea5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/next-safe-action/src/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { isError } from "./utils";
/**
* Use the action from a Client Component via hook.
* @param safeActionFn The action function
* @param utils Optional callbacks
* @param utils Optional base utils and callbacks
*
* {@link https://next-safe-action.dev/docs/execution/hooks/useaction See docs for more information}
*/
Expand Down Expand Up @@ -131,7 +131,7 @@ export const useAction = <
/**
* Use the action from a Client Component via hook, with optimistic data update.
* @param safeActionFn The action function
* @param utils Required `currentData` and `updateFn` and optional callbacks
* @param utils Required `currentData` and `updateFn` and optional base utils and callbacks
*
* {@link https://next-safe-action.dev/docs/execution/hooks/useoptimisticaction See docs for more information}
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/next-safe-action/src/stateful-hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type { HookBaseUtils, HookCallbacks, HookSafeStateActionFn } from "./hook
/**
* Use the stateful action from a Client Component via hook. Used for actions defined with [`stateAction`](https://next-safe-action.dev/docs/safe-action-client/instance-methods#action--stateaction).
* @param safeActionFn The action function
* @param utils Optional `initResult`, `permalink` and callbacks
* @param utils Optional `initResult`, `permalink`, base utils and callbacks
*
* {@link https://next-safe-action.dev/docs/execution/hooks/usestateaction See docs for more information}
*/
Expand Down

0 comments on commit 2d9eea5

Please sign in to comment.