Type

AddonShapeValidator

@ng-forge/dynamic-forms

Optional shape validator a kind ships to enforce its required fields at runtime. Throws are caught by the validator and converted into lenient warnings; the offending addon is dropped and the form keeps rendering.

Signature

type AddonShapeValidator<T extends BaseAddon = BaseAddon> = (addon: T, fieldKey: string) => void;

Type Parameters

NameConstraintDefaultDescription
TBaseAddonBaseAddon-