diff --git a/packages/next-safe-action/src/safe-action-client.ts b/packages/next-safe-action/src/safe-action-client.ts index 22f0fc5..3d7e9f8 100644 --- a/packages/next-safe-action/src/safe-action-client.ts +++ b/packages/next-safe-action/src/safe-action-client.ts @@ -22,7 +22,7 @@ export class SafeActionClient< ServerError, ODVES extends DVES | undefined, // override default validation errors shape MetadataSchema extends Schema | undefined = undefined, - MD = MetadataSchema extends Schema ? Infer : undefined, + MD = MetadataSchema extends Schema ? Infer : undefined, Ctx extends object = {}, SF extends (() => Promise) | undefined = undefined, // schema function S extends Schema | undefined = SF extends Function ? Awaited> : undefined, @@ -233,7 +233,7 @@ export class SafeActionClient< } /** - * Define the stateful action (without input validation schema, bind arguments validation schemas or metadata). + * Define the stateful action. * To be used with the [`useStateAction`](https://next-safe-action.dev/docs/execution/hooks/usestateaction) hook. * @param serverCodeFn Code that will be executed on the **server side** * @param [cb] Optional callbacks that will be called after action execution, on the server.