effect-io-ai

Package: effect
Module: Schema

Schema.isLowercased

Validates that a string is unchanged by JavaScript’s toLowerCase().

Details

This accepts empty strings and characters that do not have uppercase forms, such as digits, punctuation, and whitespace. It rejects strings that would change when lowercased.

Signature

declare const isLowercased: (annotations?: Annotations.Filter) => SchemaAST.Filter<string>

Source

Since v4.0.0