Package: effect
Module: Schema
Validates that a string has no leading or trailing whitespace.
Details
JSON Schema:
This check corresponds to a pattern constraint in JSON Schema that
matches strings without leading or trailing whitespace.
Arbitrary:
When generating test data with fast-check, this applies a patterns
constraint to ensure generated strings match the trimmed pattern.
Signature
declare const isTrimmed: (annotations?: Annotations.Filter) => SchemaAST.Filter<string>
Since v4.0.0