MCPcopy Create free account
hub / github.com/effect-app/libs / isStringSymbol

Function isStringSymbol

repos/effect/packages/effect/src/SchemaAST.ts:3713–3725  ·  view source on GitHub ↗
(annotations?: Schema.Annotations.Filter)

Source from the content-addressed store, hash-verified

3711 * **Details**
3712 *
3713 * After flipping, what was decoding becomes encoding and vice versa. This is
3714 * the core operation behind `Schema.encode` — encoding a value is decoding
3715 * with a flipped SchemaAST.
3716 *
3717 * - Memoized: same input reference → same output reference.
3718 * - Recursively walks composite nodes.
3719 *
3720 * @see {@link toType}
3721 * @see {@link toEncoded}
3722 * @category transforming
3723 * @since 4.0.0
3724 */
3725export const flip = memoize((ast: AST): AST => {
3726 if (ast.encoding) {
3727 return flipEncoding(ast, ast.encoding)
3728 }

Callers 1

SchemaAST.tsFile · 0.85

Calls 1

isPatternFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…