Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit010bbe4

Browse files
authored
type in error-customization.mdx (#4514)
1 parentbc15379 commit010bbe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎packages/docs/content/error-customization.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ z.set(z.string(), { error: "Bad set!" });
134134
</Tabs>
135135

136136

137-
The`error` param optionally accepts a function. An error customization function is known as an**error map** in Zod terminology. The error map willcan at parse time if a valiation error occurs.
137+
The`error` param optionally accepts a function. An error customization function is known as an**error map** in Zod terminology. The error map willrun at parse time if a valiation error occurs.
138138

139139
```ts
140140
z.string({error: ()=>`[${Date.now()}]: Validation failure.` });

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp