Options
All
  • Public
  • Public/Protected
  • All
Menu

Module util/errorHandling

Index

Type aliases

ServerValidationErrors

ServerValidationErrors: { fieldErrors: Map<string, string[]>; globalErrors: string[] }

Type declaration

  • fieldErrors: Map<string, string[]>
  • globalErrors: string[]

Functions

clearFieldErrors

  • clearFieldErrors(formInstance: FormInstance): void

constructFieldsWithErrors

  • constructFieldsWithErrors(fieldErrors: Map<string, string[]>, formInstance: FormInstance): FieldData[]
  • Constructs antd form fields object containing given errors

    Parameters

    • fieldErrors: Map<string, string[]>
    • formInstance: FormInstance

    Returns FieldData[]

extractServerValidationErrors

Generated using TypeDoc