UNPKG

@elsikora/nestjs-crud-automator

Version:

A library for automating the creation of CRUD operations in NestJS.

10 lines (9 loc) 460 B
import type { ValidatorConstraintInterface } from "class-validator"; export declare class IsRegularExpressionValidator implements ValidatorConstraintInterface { /** * Validates whether a string is a valid regular expression pattern * @param {string} pattern - The regular expression pattern to validate * @returns {boolean} True if the pattern is a valid regular expression, false otherwise */ validate(pattern: string): boolean; }