effect-io-ai

Package: effect
Module: SchemaIssue

SchemaIssue.defaultLeafHook

Returns the built-in LeafHook used by default formatters.

When to use

Use as the default leaf renderer when customizing only the CheckHook.

Details

Example (Formatting Standard Schema issues with defaultLeafHook)

import { SchemaIssue } from "effect"

const formatter = SchemaIssue.makeFormatterStandardSchemaV1({
  leafHook: SchemaIssue.defaultLeafHook
})

See

Signature

declare const defaultLeafHook: LeafHook

Source

Since v4.0.0