+++ # ----------------------------------------------------------------------- # Do not edit this file. It is automatically generated by API Documenter. # ----------------------------------------------------------------------- title = "ValidationRule" keywords = ["grafana","documentation","sdk","@grafana/ui"] type = "docs" +++ ## ValidationRule interface Signature ```typescript export interface ValidationRule ``` Import ```typescript import { ValidationRule } from '@grafana/ui'; ``` Properties | Property | Type | Description | | --- | --- | --- | | [errorMessage](#errormessage-property) | string | | | [rule](#rule-property) | (valueToValidate: string) => boolean | | ### errorMessage property Signature ```typescript errorMessage: string; ``` ### rule property Signature ```typescript rule: (valueToValidate: string) => boolean; ```