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

Function makeFormatterStandardSchemaV1

packages/effect/src/SchemaIssue.ts:1026–1033  ·  view source on GitHub ↗
(options?: {
  readonly leafHook?: LeafHook | undefined
  readonly checkHook?: CheckHook | undefined
})

Source from the content-addressed store, hash-verified

1024 * @since 4.0.0
1025 */
1026export function makeFormatterStandardSchemaV1(options?: {
1027 readonly leafHook?: LeafHook | undefined
1028 readonly checkHook?: CheckHook | undefined
1029}): Formatter<StandardSchemaV1.FailureResult> {
1030 return (issue) => ({
1031 issues: toDefaultIssues(issue, [], options?.leafHook ?? defaultLeafHook, options?.checkHook ?? defaultCheckHook)
1032 })
1033}
1034
1035// A subtype of StandardSchemaV1.Issue
1036type DefaultIssue = {

Callers

nothing calls this directly

Calls 1

toDefaultIssuesFunction · 0.85

Tested by

no test coverage detected