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

Function defaultCheckHook

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

Source from the content-addressed store, hash-verified

1256 * @since 4.0.0
1257 */
1258export const defaultCheckHook: CheckHook = (issue): string | undefined => findMessage(issue) ?? findMessage(issue.issue)
1259
1260/**
1261 * Creates a {@link Formatter} that produces a `StandardSchemaV1.FailureResult`.

Callers

nothing calls this directly

Calls 1

findMessageFunction · 0.70

Tested by

no test coverage detected