Defjs
Core

FlattenedStructError

Flat field and form error bags returned by StructError.flatten().

@defjs/core · Type

Signature

interface FlattenedStructError {
  formErrors: string[];
  fieldErrors: { [key: string]: string[] };
}

formErrors holds messages of issues with an empty path (root-level issues). fieldErrors holds messages keyed by the first path segment, so nested issues are grouped under their top-level field.

Members

Prop

Type

formErrors string[]

Messages whose path is empty (root-level issues).

fieldErrors { [key: string]: string[]; }

Messages keyed by the first path segment.

Edit this page on GitHub
Released under the MIT License. · Copyright © 2026 MunMunMiao