You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: packages/next-safe-action/src/middleware.ts
+1-1
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ import type { MiddlewareFn } from "./index.types";
5
5
* properties, if you need one or all of them to be typed. The type for each property that is passed as generic is the
6
6
* **minimum** shape required to define the middleware function, but it can also be larger than that.
7
7
*
8
-
* {@link https://next-safe-action.dev/docs/safe-action-client/middleware#create-standalone-middleware-with-createmiddleware See docs for more information}
8
+
* {@link https://next-safe-action.dev/docs/define-actions/middleware#create-standalone-middleware-with-createmiddleware See docs for more information}
@@ -112,9 +112,9 @@ export class SafeActionClient<
112
112
113
113
/**
114
114
* Define metadata for the action.
115
-
* @param data Metadata with the same type as the return value of the [`defineMetadataSchema`](https://next-safe-action.dev/docs/safe-action-client/initialization-options#definemetadataschema) optional initialization function
115
+
* @param data Metadata with the same type as the return value of the [`defineMetadataSchema`](https://next-safe-action.dev/docs/define-actions/create-the-client#definemetadataschema) optional initialization function
116
116
*
117
-
* {@link https://next-safe-action.dev/docs/safe-action-client/instance-methods#metadata See docs for more information}
117
+
* {@link https://next-safe-action.dev/docs/define-actions/instance-methods#metadata See docs for more information}
118
118
*/
119
119
metadata(data: MD){
120
120
returnnewSafeActionClient({
@@ -140,7 +140,7 @@ export class SafeActionClient<
140
140
* @param inputSchema Input validation schema
141
141
* @param utils Optional utils object
142
142
*
143
-
* {@link https://next-safe-action.dev/docs/safe-action-client/instance-methods#inputschema See docs for more information}
143
+
* {@link https://next-safe-action.dev/docs/define-actions/create-the-client#inputschema See docs for more information}
* 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).
10
+
* Use the stateful action from a Client Component via hook. Used for actions defined with [`stateAction`](https://next-safe-action.dev/docs/define-actions/instance-methods#action--stateaction).
11
11
* @param safeActionFn The action function
12
12
* @param utils Optional `initResult`, `permalink`, base utils and callbacks
13
13
*
14
-
* {@link https://next-safe-action.dev/docs/execution/hooks/usestateaction See docs for more information}
14
+
* {@link https://next-safe-action.dev/docs/execute-actions/hooks/usestateaction See docs for more information}
* {@link https://next-safe-action.dev/docs/recipes/customize-validation-errors-format#flattenvalidationerrors-and-flattenbindargsvalidationerrors-utility-functions See docs for more information}
112
+
* {@link https://next-safe-action.dev/docs/define-actions/validation-errors#flattenvalidationerrors-and-flattenbindargsvalidationerrors-utility-functions See docs for more information}
* {@link https://next-safe-action.dev/docs/recipes/customize-validation-errors-format#flattenvalidationerrors-and-flattenbindargsvalidationerrors-utility-functions See docs for more information}
140
+
* {@link https://next-safe-action.dev/docs/define-actions/validation-errors#flattenvalidationerrors-and-flattenbindargsvalidationerrors-utility-functions See docs for more information}
0 commit comments