UNPKG

validatorshield

Version:

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

3 lines (2 loc) 138 B
import { RuleContext } from '../validator'; export declare function inRule(value: any, _ctx: RuleContext, ...allowed: string[]): boolean;