middag-react
    Preparing search index...

    Interface FieldError

    A single server validation error. v0.11.0 wire shape: message is the server-resolved (default-locale) string; key/domain/params are the machine channel for client-side re-translation.

    Hand-authored on purpose: the wire FieldError ($def in middag-php-ui) is the leaner string | string[]; unifying the two is a deferred breaking change.

    interface FieldError {
        domain: string;
        key: string;
        message: string;
        params?: Record<string, unknown>;
    }
    Index

    Properties

    domain: string
    key: string
    message: string
    params?: Record<string, unknown>