MCPcopy Create free account
hub / github.com/Effect-TS/effect / toCodecStringTree

Method toCodecStringTree

packages/effect/src/SchemaAST.ts:1325–1327  ·  view source on GitHub ↗

@internal

()

Source from the content-addressed store, hash-verified

1323 }
1324 /** @internal */
1325 toCodecStringTree(): AST {
1326 return typeof this.literal === "string" ? this : literalToString(this)
1327 }
1328 /** @internal */
1329 getExpected(): string {
1330 return typeof this.literal === "string" ? JSON.stringify(this.literal) : globalThis.String(this.literal)

Callers

nothing calls this directly

Calls 1

literalToStringFunction · 0.85

Tested by

no test coverage detected