effect-io-ai

Package: effect
Module: Schema

Schema.isEndsWith

Validates at runtime that a string ends with the specified literal suffix.

Details

RegExp metacharacters in the suffix are escaped in JSON Schema and arbitrary metadata so that the generated patterns retain literal endsWith semantics.

Signature

declare const isEndsWith: (endsWith: string, annotations?: Annotations.Filter) => SchemaAST.Filter<string>

Source

Since v4.0.0