Config property input validation

Hierarchy

  • ConfigPropertyMetaInput

Properties

failedMessage: string | ((value) => string)

The message to return in the error if the validation fails.

Type declaration

    • (value): string
    • Parameters

      • value: AnyJson

      Returns string

validator: ((value) => boolean)

Type declaration

    • (value): boolean
    • Tests if the input value is valid and returns true if the input data is valid.

      Parameters

      • value: AnyJson

        The input value.

      Returns boolean