void_()
void_(
message?):VoidSchema
Void schema with 0 overhead after tsup + Terser build.
Usage identical to before:
- void_()
- void_("Custom error")
The void type accepts only undefined - used for functions with no return value.
Parameters
message?: string
Custom error message (optional).
Returns: VoidSchema
VoidSchema
Since
2.0.0