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

Method toString

packages/effect/src/SchemaAST.ts:1822–1829  ·  view source on GitHub ↗

* @since 3.10.0

()

Source from the content-addressed store, hash-verified

1820 * @since 3.10.0
1821 */
1822 toString() {
1823 return getIdentifierAnnotation(this).pipe(Option.getOrElse(() =>
1824 Option.match(getOrElseExpected(this), {
1825 onNone: () => `{ ${this.from} | filter }`,
1826 onSome: (expected) => isRefinement(this.from) ? String(this.from) + " & " + expected : expected
1827 })
1828 ))
1829 }
1830 /**
1831 * @since 3.10.0
1832 */

Callers

nothing calls this directly

Calls 4

getIdentifierAnnotationFunction · 0.85
getOrElseExpectedFunction · 0.85
StringInterface · 0.85
pipeMethod · 0.65

Tested by

no test coverage detected