Clarification on the `trim` combinator in Effect Typescript Schema Filters

In the Schema > Filters > String Filters docs here after the code block there is an info block that says:

Trim vs Trimmed

The trimmed combinator does not make any transformations, it only validates. If what you were looking for was a combinator to trim strings, then check out the trim combinator or the Trim schema.

...but I cannot find any information on the trim combinator anywhere? There is no Schema.trim method or Schema.String.trim method.

I managed to find a trim function exported from effect/String with the definition:
export const trim = <A extends string>(self: A): Trim<A> => self.trim() as Trim<A>

...but how would you use this with
Schema.String
?
Effect Documentation
Define custom validation logic with filters to enhance data validation beyond basic type checks.
Was this page helpful?