MCPcopy Index your code
hub / github.com/Effect-TS/effect / toString

Method toString

packages/effect/src/SchemaAST.ts:1764–1774  ·  view source on GitHub ↗

* @since 3.10.0

()

Source from the content-addressed store, hash-verified

1762 * @since 3.10.0
1763 */
1764 toString() {
1765 return getExpected(this).pipe(
1766 Option.orElse(() =>
1767 Option.flatMap(
1768 Option.liftThrowable(this.f)(),
1769 (ast) => getExpected(ast)
1770 )
1771 ),
1772 Option.getOrElse(() => "<suspended schema>")
1773 )
1774 }
1775 /**
1776 * @since 3.10.0
1777 */

Callers

nothing calls this directly

Calls 2

getExpectedFunction · 0.85
pipeMethod · 0.65

Tested by

no test coverage detected