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

Function fallback

packages/effect/src/ui/MessageLog.ts:2113–2114  ·  view source on GitHub ↗
(ast: SchemaAST.AST, value: unknown)

Source from the content-addressed store, hash-verified

2111 })
2112}
2113const fallback = (ast: SchemaAST.AST, value: unknown): Schema.Json =>
2114 holdsRedacted(ast) ? redacted : guarded(() => structural(value))
2115
2116/**
2117 * Encodes a value through a Schema with every `Schema.Redacted` redacted. A

Callers

nothing calls this directly

Calls 2

structuralFunction · 0.85
guardedFunction · 0.70

Tested by

no test coverage detected