effect-io-ai

Package: effect
Module: Schema

Schema.isStringSymbol

Validates that a string has the Symbol(description) format used by Effect’s symbol string encoding.

Details

The check uses the pattern ^Symbol\((.*)\)$. It is not a general test for whether a string can be passed to JavaScript’s Symbol() function.

Signature

declare const isStringSymbol: (annotations?: Annotations.Filter) => SchemaAST.Filter<string>

Source

Since v4.0.0