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

Function uncapitalized

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

Source from the content-addressed store, hash-verified

4624 */
4625export const uncapitalized =
4626 <S extends Schema.Any>(annotations?: Annotations.Filter<Schema.Type<S>>) =>
4627 <A extends string>(self: S & Schema<A, Schema.Encoded<S>, Schema.Context<S>>): filter<S> =>
4628 self.pipe(
4629 filter((a) => a[0]?.toLowerCase() === a[0], {
4630 schemaId: UncapitalizedSchemaId,
4631 title: "uncapitalized",
4632 description: "a uncapitalized string",
4633 jsonSchema: { pattern: "^[^A-Z]?.*$" },
4634 ...annotations
4635 })
4636 )
4637
4638/**
4639 * @category string constructors

Callers 1

UncapitalizedClass · 0.85

Calls 2

filterFunction · 0.70
pipeMethod · 0.65

Tested by

no test coverage detected