@elsikora/nestjs-crud-automator
Version:
A library for automating the creation of CRUD operations in NestJS.
19 lines (18 loc) • 1.06 kB
TypeScript
import { type ValidationArguments, ValidatorConstraintInterface } from "class-validator";
export declare class HasPairedCustomSuffixesFieldsValidator implements ValidatorConstraintInterface {
/**
* Provides a custom error message describing the validation failure
* @param {ValidationArguments} properties - Validation arguments containing the object being validated
* @returns {string} A descriptive error message explaining why validation failed
*/
defaultMessage(properties: ValidationArguments): string;
/**
* Validates that fields with suffixes follow the proper operator-value pairing pattern
* @param {unknown} _value - The value being validated (unused)
* @param {{ constraints: [string, Array<string>] } & ValidationArguments} properties - Validation arguments and constraints
* @returns {boolean} True if the object has properly paired suffixes, false otherwise
*/
validate(_value: unknown, properties: {
constraints: [string, Array<string>];
} & ValidationArguments): boolean;
}