optional()
Marks the value as optional, allowing undefined values.
optional(): Builder<T | undefined>;
Return value
This builder, for chaining.
Related
class Builder static
A class that represents a validation builder for an input value.
Marks the value as optional, allowing undefined values.
optional(): Builder<T | undefined>;
This builder, for chaining.