MCPcopy
hub / github.com/Effect-TS/effect / lowercased

Function lowercased

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

Source from the content-addressed store, hash-verified

4525 */
4526export const lowercased =
4527 <S extends Schema.Any>(annotations?: Annotations.Filter<Schema.Type<S>>) =>
4528 <A extends string>(self: S & Schema<A, Schema.Encoded<S>, Schema.Context<S>>): filter<S> =>
4529 self.pipe(
4530 filter((a) => a === a.toLowerCase(), {
4531 schemaId: LowercasedSchemaId,
4532 title: "lowercased",
4533 description: "a lowercase string",
4534 jsonSchema: { pattern: "^[^A-Z]*$" },
4535 ...annotations
4536 })
4537 )
4538
4539/**
4540 * @category string constructors

Callers 1

LowercasedClass · 0.85

Calls 2

filterFunction · 0.70
pipeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…