preprocess()
Replaces the input value using the provided callback function.
preprocess(fn: (value: unknown) => unknown): this;
Notes
- Runs before any other checks and transformations, but after optional/default checks.
- Used internally by the coerce set of functions.
Parameters
- fn — The callback function for preprocessing the input value.
Return value
This builder, for chaining.
Related
class Builder static
A class that represents a validation builder for an input value.
