MapToErrorsFn
Type Alias
A function that takes the result of an async operation and the current field context, and maps it to a list of validation errors.
API
type MapToErrorsFn<TValue, TResult, TPathKind extends PathKind = PathKind.Root> = ( result: TResult, ctx: FieldContext<TValue, TPathKind>,) => TreeValidationResult
Jump to details