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

Function pretty

packages/effect/test/Schema/Pretty.test.ts:59–59  ·  view source on GitHub ↗
(schema: S.Schema<A>)

Source from the content-addressed store, hash-verified

57 }
58 const go = AST.getCompiler(match)
59 const pretty = <A>(schema: S.Schema<A>) => (a: A): string => go(schema.ast, [])(a)
60 strictEqual(pretty(S.Boolean)(true), `True`)
61 const schema = S.Tuple(S.String, S.Boolean)
62 strictEqual(pretty(schema)(["a", true]), `["a", True]`)

Callers 1

Pretty.test.tsFile · 0.70

Calls 1

goFunction · 0.50

Tested by

no test coverage detected