Type alias CustomValidateOptions<T>

CustomValidateOptions<T>: {
    message: string | ((validationArguments) => string);
    validator: ((value, args) => boolean);
}

Type Parameters

  • T = unknown

Type declaration

  • message: string | ((validationArguments) => string)
  • validator: ((value, args) => boolean)
      • (value, args): boolean
      • Parameters

        • value: T
        • args: ValidationArguments

        Returns boolean

Generated using TypeDoc