Skip to content

Commit

Permalink
docs: tweak server functions docs (#2951)
Browse files Browse the repository at this point in the history
* start

* tweaks

* work

* work

* last tweak
  • Loading branch information
arackaf authored Dec 8, 2024
1 parent e9d4759 commit 29619bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/framework/react/start/server-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ greet({

Server functions can be configured to validate their input data at runtime, while adding type safety. This is useful for ensuring the input is of the correct type before executing the server function, and providing more friendly error messages.

This is done with the `validator` method. It will accept whatever input is passed to the server function. The value (and type) you return from this function will become the input to the passed to the actual server function handler.
This is done with the `validator` method. It will accept whatever input is passed to the server function. The value (and type) you return from this function will become the input passed to the actual server function handler.

Validators also integrate seamlessly with external validators, if you want to use something like Zod.

Expand Down

0 comments on commit 29619bf

Please sign in to comment.