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

Function findExpected

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

Source from the content-addressed store, hash-verified

1320}
1321
1322function findExpected(issue: InvalidValue): string | undefined {
1323 const expected = issue.annotations?.expected
1324 return typeof expected === "string" ? expected : undefined
1325}
1326
1327function getExpectedMessage(expected: string, issue: Issue): string {
1328 const input = formatInput(issue)

Callers 2

defaultLeafHookFunction · 0.85
getFilterMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected