UNPKG

validatorshield

Version:

Universal validation (frontend + backend) with TypeScript. Includes common rules and Sequelize-backed async rules (unique, exists).

3 lines (2 loc) 148 B
import { RuleContext } from '../validator'; export declare function regex(value: any, _ctx: RuleContext, pattern: string, flags?: string): boolean;