check()
Adds a validation check using the provided function.
check(f: (value: T) => void | boolean): this;
Notes
- The input value is considered valid if the function returns a truthy value.
- Runs only if all previous validation steps have passed.
Parameters
- f — The callback function for checking each value.
Return value
This builder, for chaining.
Related
class Builder static
A class that represents a validation builder for an input value.
