Skip to content

Commit 2e687cb

Browse files
committedFeb 4, 2024
docs: rename leftover validationError refs to validationErrors
1 parent f24fdcd commit 2e687cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎packages/next-safe-action/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const createSafeActionClient = <Context>(createOpts?: SafeClientOpts<Cont
7070
serverCode: ServerCodeFn<S, Data, Context>
7171
): SafeAction<S, Data> => {
7272
// This is the function called by client. If `input` fails the schema
73-
// parsing, the function will return a `validationError` object, containing
73+
// parsing, the function will return a `validationErrors` object, containing
7474
// all the invalid fields provided.
7575
return async (clientInput) => {
7676
try {

‎website/docs/getting-started.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export default function Login() {
100100
const res = await loginUser({ username: "johndoe", password: "123456" });
101101

102102
// Result keys.
103-
const { data, validationError, serverError } = res;
103+
const { data, validationErrors, serverError } = res;
104104
}}>
105105
Log in
106106
</button>

0 commit comments

Comments
 (0)
Please sign in to comment.