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

Function getExpectedMessage

packages/effect/src/SchemaIssue.ts:1327–1330  ·  view source on GitHub ↗
(expected: string, issue: Issue)

Source from the content-addressed store, hash-verified

1325}
1326
1327function getExpectedMessage(expected: string, issue: Issue): string {
1328 const input = formatInput(issue)
1329 return input === undefined ? `Expected ${expected}` : `Expected ${expected}, got ${input}`
1330}
1331
1332function getFilterMessage(issue: Filter, checkHook: CheckHook): string | undefined {
1333 const message = checkHook(issue)

Callers 4

defaultLeafHookFunction · 0.85
getFilterMessageFunction · 0.85
toDefaultIssuesFunction · 0.85
formatIssueFunction · 0.85

Calls 1

formatInputFunction · 0.85

Tested by

no test coverage detected