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

Function formatInput

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

Source from the content-addressed store, hash-verified

1039}
1040
1041function formatInput(issue: Issue): string | undefined {
1042 return hasInput(issue) ? format(issue.input) : undefined
1043}
1044
1045function findExpected(issue: InvalidValue): string | undefined {
1046 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