Skip to content

Commit

Permalink
chore(website): add client input args to server code function docs
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEdoRan committed Dec 15, 2024
1 parent 199a09f commit 14946de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/docs/define-actions/instance-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<Data>;
```

```typescript title="Stateful action"
serverCodeFn = (
args: { parsedInput, bindArgsParsedInputs, ctx, metadata },
args: { parsedInput, bindArgsParsedInputs, clientInput, bindArgsClientInputs, ctx, metadata },
utils: { prevResult }
) => Promise<Data>;
```
Expand Down

0 comments on commit 14946de

Please sign in to comment.