From 576aafcb9da372167e6b315720ca79911f25d410 Mon Sep 17 00:00:00 2001 From: ehdtjs0612 Date: Fri, 2 Feb 2024 00:36:18 +0900 Subject: [PATCH] docs: typescript example should use isEmpty method (guide/manually-running) --- docs/guides/manually-running.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/manually-running.md b/docs/guides/manually-running.md index 776016c2..288d3933 100644 --- a/docs/guides/manually-running.md +++ b/docs/guides/manually-running.md @@ -66,7 +66,7 @@ const validate = (validations: ContextRunner[]) => { return async (req: express.Request, res: express.Response, next: express.NextFunction) => { for (const validation of validations) { const result = await validation.run(req); - if (result.errors.length) break; + if (!result.isEmpty()) break; } const errors = validationResult(req);