WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 5751a3b

Browse files
committed
fix readme typo
1 parent 6a43b97 commit 5751a3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ const router = zodRouter({ continueOnError: true });
281281

282282
router.use(async (ctx, next) => {
283283
// check if an error was thrown
284-
if (ctx.invalid?.error) {
284+
if (ctx.invalid.error) {
285285
// deconstruct all of the ZodErrors from ctx.invalid
286286
const { body, headers, query, params, files } = ctx.invalid;
287287
//... handle ZodErrors

0 commit comments

Comments
 (0)