MCPcopy Index your code
hub / github.com/Effect-TS/effect / uppercased

Function uppercased

packages/effect/src/Schema.ts:4560–4570  ·  view source on GitHub ↗
(annotations?: Annotations.Filter<Schema.Type<S>>)

Source from the content-addressed store, hash-verified

4558 */
4559export const uppercased =
4560 <S extends Schema.Any>(annotations?: Annotations.Filter<Schema.Type<S>>) =>
4561 <A extends string>(self: S & Schema<A, Schema.Encoded<S>, Schema.Context<S>>): filter<S> =>
4562 self.pipe(
4563 filter((a) => a === a.toUpperCase(), {
4564 schemaId: UppercasedSchemaId,
4565 title: "uppercased",
4566 description: "an uppercase string",
4567 jsonSchema: { pattern: "^[^a-z]*$" },
4568 ...annotations
4569 })
4570 )
4571
4572/**
4573 * @category string constructors

Callers 1

UppercasedClass · 0.85

Calls 2

filterFunction · 0.70
pipeMethod · 0.65

Tested by

no test coverage detected