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

Function literalToString

repos/effect/packages/effect/src/SchemaAST.ts:1282–1293  ·  view source on GitHub ↗
(ast: Literal)

Source from the content-addressed store, hash-verified

1280 *
1281 * **Example** (Creating a literal AST)
1282 *
1283 * ```ts import.meta.vitest
1284 * import { SchemaAST } from "effect"
1285 *
1286 * const ast = new SchemaAST.Literal("active")
1287 * ast.literal // => "active"
1288 * ```
1289 *
1290 * @see {@link LiteralValue}
1291 * @see {@link isLiteral}
1292 * @category models
1293 * @since 3.10.0
1294 */
1295export class Literal extends Base {
1296 readonly _tag = "Literal"

Callers 2

toCodecJsonMethod · 0.85
toCodecStringTreeMethod · 0.85

Calls 2

replaceEncodingFunction · 0.85
transformMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…