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

Function formatInput

packages/effect/src/SchemaIssue.ts:1318–1320  ·  view source on GitHub ↗
(issue: Issue)

Source from the content-addressed store, hash-verified

1316}
1317
1318function formatInput(issue: Issue): string | undefined {
1319 return hasInput(issue) ? format(issue.input) : undefined
1320}
1321
1322function findExpected(issue: InvalidValue): string | undefined {
1323 const expected = issue.annotations?.expected

Callers 2

defaultLeafHookFunction · 0.85
getExpectedMessageFunction · 0.85

Calls 2

formatFunction · 0.90
hasInputFunction · 0.85

Tested by

no test coverage detected