Aller au contenu principal

unknown()

unknown(message?): UnknownSchema

Unknown schema - accepts any value (type-safe variant of any).

The unknown 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 unknown always accepts all values.


Parameters​

message?: string​

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


Returns: UnknownSchema​

UnknownSchema that accepts any value


Since​

2.0.0