(annotations?: Annotations.Filter<Schema.Type<S>>)
| 4558 | */ |
| 4559 | export 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 |
no test coverage detected