Skip to main content

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