Skip to main content

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