ProtectedkeyProtecteddataProtectedhas_Protectedis_ProtectedoutStaticforOptionaloptions: CheckOptionsOptionaloptions: CheckOptionsOptionaloptions: CheckOptionsOptionaloptions: CheckOptionsOptionalkey: stringOptionaloptions: CheckOptionsProtectedrulesRuns a group of array-level checks and merges their results.
Return an array of checks from the callback. Each check can be synchronous or a promise.
Alias for check using JSON Schema-style naming.
All returned checks must pass for the composed result to stay valid.
Evaluates alternative array branches and succeeds when at least one branch is valid.
Each branch function is evaluated in isolation using cloned array state. Valid branches are then replayed on the current checker so mutations behave the same way as normal non-branch checks.
Evaluates alternative array branches and succeeds only when exactly one branch is valid.
Each branch function is evaluated in isolation using cloned array state. The single winning branch is then replayed on the current checker so mutations behave the same way as normal non-branch checks.
Inverts a composed array branch and fails when that branch is valid.
The negated branch is evaluated in isolation and is never replayed onto the current checker, so mutations inside the branch do not affect the original input.
Optionaloptions: CheckOptionsProtectedrulesValidates each array item against a decorated class definition.
This is shorthand for checkEach(item => [item.matchesType(...)]).
Optionaloptions: ClassValidationOptionsSucceeds when a bounded number of array items satisfy the provided item-level checks.
Matching items are evaluated in isolation first. When the overall contains
condition is valid, the matching item checks are replayed on the real array
so mutations such as trim() or tolerant parsing still affect the input.
Non-matching item errors are not merged into the final result.
Optionaloptions: ArrayContainsOptionsOptionaloptions: CheckOptionsOptionaloptions: CheckOptionsProtectederrorOptionaloptions: CheckOptionsBuilds the validation result for the current check.
Optionaloptions: ResultOptions
Common interface implemented by all check classes.