Skip to content

Commit

Permalink
docs: update links in JSDocs
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEdoRan committed May 15, 2024
1 parent 8a4309c commit 0bdc31b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion packages/next-safe-action/src/safe-action-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ class SafeActionClient<ServerError, Ctx = undefined, Metadata = undefined> {
* Define the input validation schema for the action.
* @param schema Input validation schema
* @param utils Optional utils object
* @returns
*
* {@link https://next-safe-action.dev/docs/safe-action-client/instance-methods#schema See docs for more information}
*/
schema<S extends Schema | undefined = undefined, FVE = ValidationErrors<S>>(
schema?: S,
Expand Down
12 changes: 8 additions & 4 deletions packages/next-safe-action/src/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import type { HookActionStatus } from "./hooks.types";
/**
* Returns true if the action is idle.
* @param status
* @returns
*
* {@link https://next-safe-action.dev/docs/execution/hooks/check-action-status#utility-functions See docs for more information}
*/
export function isIdle(status: HookActionStatus): status is "idle" {
return status === "idle";
Expand All @@ -12,7 +13,8 @@ export function isIdle(status: HookActionStatus): status is "idle" {
/**
* Returns true if the action is executing.
* @param status
* @returns
*
* {@link https://next-safe-action.dev/docs/execution/hooks/check-action-status#utility-functions See docs for more information}
*/
export function isExecuting(status: HookActionStatus): status is "executing" {
return status === "executing";
Expand All @@ -21,7 +23,8 @@ export function isExecuting(status: HookActionStatus): status is "executing" {
/**
* Returns true if the action has succeeded.
* @param status
* @returns
*
* {@link https://next-safe-action.dev/docs/execution/hooks/check-action-status#utility-functions See docs for more information}
*/
export function hasSucceeded(status: HookActionStatus): status is "hasSucceeded" {
return status === "hasSucceeded";
Expand All @@ -30,7 +33,8 @@ export function hasSucceeded(status: HookActionStatus): status is "hasSucceeded"
/**
* Returns true if the action has errored.
* @param status
* @returns
*
* {@link https://next-safe-action.dev/docs/execution/hooks/check-action-status#utility-functions See docs for more information}
*/
export function hasErrored(status: HookActionStatus): status is "hasErrored" {
return status === "hasErrored";
Expand Down

0 comments on commit 0bdc31b

Please sign in to comment.