effect-io-ai

Package: effect
Module: Schema

Schema.isUppercased

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

Details

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

Signature

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

Source

Since v4.0.0