Skip to main content

any()

any(message?): AnySchema

Any schema - accepts any value.

The any type accepts any value without validation. A custom message can be provided for API consistency and introspection, but it will never be used by the validator since any always accepts all values.


Parametersโ€‹

message?: stringโ€‹

Custom message (stored for API consistency and introspection, but never used by the validator since any always accepts all values)


Returns: AnySchemaโ€‹

AnySchema that accepts any value


Sinceโ€‹

2.0.0