how to use Schema.Lowercase with Schema.NonEmptyString?
effectschema✅Solved!
I have a Schema.NonEmptyString, and I want to lowercase that nonEmptyString, but
Schema.NonEmptyString.pipe(Schema.Lowercase)
Schema.NonEmptyString.pipe(Schema.Lowercase)
throws with:
Argument of type 'typeof Lowercase' is not assignable to parameter of type '(_: typeof NonEmptyString) => Field'. Type 'typeof Lowercase' provides no match for the signature '(_: typeof NonEmptyString): Field'.
Argument of type 'typeof Lowercase' is not assignable to parameter of type '(_: typeof NonEmptyString) => Field'. Type 'typeof Lowercase' provides no match for the signature '(_: typeof NonEmptyString): Field'.
I have searched the docs and this discord and searched on google and search with AI :/