evaluateA2uiChecks

Unpublished development API. This package is under development and is not available as a published release.

Evaluates every component's checks against the surface's current data model and returns the first failing rule of each component, in component order. A rule passes only when its condition resolves to true, as resolveA2uiValue resolves it. A TextField's validationRegexp on a bound value counts as one more rule with the message "Invalid format". A component inside a child template is evaluated once per list item, after the others, and its failure carries that item's basePath. Nothing is stored or sent.

import { evaluateA2uiChecks } from '@threadplane/content/a2ui';

Declaration · overload 1

export declare function evaluateA2uiChecks(surface: A2uiSurfaceSnapshot): readonly A2uiCheckFailure[];

Parameters

surface · required
A2uiSurfaceSnapshot

Returns

readonly A2uiCheckFailure[]