From 14946de30145ba06c7e93632d654d73577fd5144 Mon Sep 17 00:00:00 2001 From: Edoardo Rsnghieri Date: Sun, 15 Dec 2024 21:31:23 +0100 Subject: [PATCH] chore(website): add client input args to server code function docs --- website/docs/define-actions/instance-methods.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/define-actions/instance-methods.md b/website/docs/define-actions/instance-methods.md index 3d48e87..d27dc9b 100644 --- a/website/docs/define-actions/instance-methods.md +++ b/website/docs/define-actions/instance-methods.md @@ -73,13 +73,13 @@ Note that when you use `stateAction`, and also want to access `prevResult` in `s ```typescript title="Stateless action" serverCodeFn( - args: { parsedInput, bindArgsParsedInputs, ctx, metadata } + args: { parsedInput, bindArgsParsedInputs, clientInput, bindArgsClientInputs, ctx, metadata } ) => Promise; ``` ```typescript title="Stateful action" serverCodeFn = ( - args: { parsedInput, bindArgsParsedInputs, ctx, metadata }, + args: { parsedInput, bindArgsParsedInputs, clientInput, bindArgsClientInputs, ctx, metadata }, utils: { prevResult } ) => Promise; ```