Member Junction
    Preparing search index...

    Validation constraint for component properties (declarative validation rules)

    interface PropertyConstraint {
        config?: Record<string, any>;
        dependsOn?: string;
        description?: string;
        errorTemplate?: string;
        type: string;
    }
    Index

    Properties

    config?: Record<string, any>

    Optional configuration object passed to the validator

    dependsOn?: string

    Optional name of another prop this constraint depends on for context

    description?: string

    Optional description of what this constraint validates

    errorTemplate?: string

    Optional custom error message template with {placeholder} variables

    type: string

    Constraint validator type (e.g., 'subset-of-entity-fields', 'sql-where-clause', 'required-when')