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

Function findExpected

packages/effect/src/SchemaIssue.ts:1045–1048  ·  view source on GitHub ↗
(issue: InvalidValue)

Source from the content-addressed store, hash-verified

1043}
1044
1045function findExpected(issue: InvalidValue): string | undefined {
1046 const expected = issue.annotations?.expected
1047 return typeof expected === "string" ? expected : undefined
1048}
1049
1050function getExpectedMessage(expected: string, issue: Issue): string {
1051 const input = formatInput(issue)

Callers 3

defaultLeafHookFunction · 0.85
toDefaultIssuesFunction · 0.85
formatIssueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected