From 939bae65570505a1a9d2a21f538d49257a781dd9 Mon Sep 17 00:00:00 2001 From: Federico Ciardi Date: Tue, 23 Feb 2021 21:12:22 +0100 Subject: [PATCH] docs: mention `ContextBuilder` returned from `#check()` --- docs/api-check.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-check.md b/docs/api-check.md index e52119fd..7f592eb0 100644 --- a/docs/api-check.md +++ b/docs/api-check.md @@ -10,7 +10,7 @@ These methods are all available via `require('express-validator')`. - `field` _(optional)_: a string or an array of strings of field names to validate against. - `message` _(optional)_: an error message to use when failed validators don't specify a message. Defaults to `Invalid value`; see also [Dynamic Messages](feature-error-messages.md#dynamic-messages). -> _Returns:_ a [Validation Chain](api-validation-chain.md) +> _Returns:_ a [Validation Chain](api-validation-chain.md) and `{ builder: ContextBuilder }` that can be used to create third party libraries. Creates a validation chain for one or more fields. They may be located in any of the following request objects: