(options?: {
readonly leafHook?: LeafHook | undefined
readonly checkHook?: CheckHook | undefined
})
| 1024 | * @since 4.0.0 |
| 1025 | */ |
| 1026 | export 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 |
| 1036 | type DefaultIssue = { |
nothing calls this directly
no test coverage detected