Aller au contenu principal

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