Hyperlinkv0.8.0-beta.28

Schema

Schema.isStringSymbolconsteffect/Schema.ts:6630
(annotations?: Annotations.Filter): SchemaAST.Filter<string>

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.

String checks
Source effect/Schema.ts:66301 lines
export const isStringSymbol: (annotations?: Annotations.Filter) => SchemaAST.Filter<string> = SchemaAST.isStringSymbol
Referenced by 1 symbols